mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-22 19:58:26 +00:00
support bot: roll back migrations with --dry-run, connection in config
This commit is contained in:
1 parent
ad7c2ef745
commit
43e8426732
8 files changed
+108
-33
No files matched your search
@@ -1,7 +1,7 @@
|
||||
# network_mode: host makes 127.0.0.1 reach PostgreSQL on the host.
|
||||
#
|
||||
# cp config/config.toml.example config/config.toml
|
||||
# PG_CONN='postgres://simplex@127.0.0.1/simplex_support_bot' docker compose up --build
|
||||
# docker compose up --build
|
||||
# LIBS=source docker compose build
|
||||
|
||||
services:
|
||||
@@ -19,11 +19,6 @@ services:
|
||||
volumes:
|
||||
- support-bot-data:/data
|
||||
- ./config:/etc/support-bot:ro
|
||||
command:
|
||||
- "--config"
|
||||
- "/etc/support-bot/config.toml"
|
||||
- "--pg-conn"
|
||||
- "${PG_CONN:?set PG_CONN, e.g. postgres://simplex@127.0.0.1/simplex_support_bot}"
|
||||
stop_grace_period: 30s
|
||||
|
||||
volumes:
|
||||
|
||||
@@ -5,6 +5,7 @@ auto_add_team_members = ["1:Alice"]
|
||||
context_file = "/etc/support-bot/grok-context.yaml"
|
||||
state_file = "/data/state.json"
|
||||
db = "postgres"
|
||||
pg_conn = "postgres://simplex@127.0.0.1/simplex_support_bot"
|
||||
timezone = "UTC"
|
||||
|
||||
# A message left out keeps its built-in text.
|
||||
|
||||
Reference in new issue
Block a user