mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-27 22:18:36 +00:00
* nodejs: pass new required command fields * nodejs: install libsimplex from SIMPLEX_LIBS_DIR * nodejs: add feed chat to chatInfoName * support bot: update deps, add test script * support bot: document build from this tree * support bot: add docker build
35 lines
1007 B
YAML
35 lines
1007 B
YAML
# 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:
|