Files
simplex-chat/scripts/support-bot/compose.yml
T

34 lines
909 B
YAML

# network_mode: host makes 127.0.0.1 reach PostgreSQL on the host.
#
# PG_CONN='postgres://simplex@127.0.0.1/simplex_support_bot' \
# docker compose -f scripts/support-bot/compose.yml up --build
services:
support-bot:
image: simplex-support-bot:latest
build:
context: ../..
dockerfile: scripts/support-bot/Dockerfile
network_mode: host
restart: on-failure:5
environment:
GROK_API_KEY: ${GROK_API_KEY:-}
volumes:
- support-bot-data:/data
- ./config:/etc/support-bot:ro
command:
- "--team-group"
- "Support Team"
- "--state-file"
- "/data/state.json"
- "--db"
- "postgres"
- "--pg-conn"
- "${PG_CONN:?set PG_CONN, e.g. postgres://simplex@127.0.0.1/simplex_support_bot}"
- "--context-file"
- "/etc/support-bot/grok-context.txt"
stop_grace_period: 30s
volumes:
support-bot-data: