# Builds the bot from this tree, on the postgres backend. network_mode: host is # what 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 args: SIMPLEX_BACKEND: ${SIMPLEX_BACKEND:-postgres} 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" - "--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: