mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-22 15:38:23 +00:00
31 lines
858 B
YAML
31 lines
858 B
YAML
# 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
|
|
# LIBS=source docker compose build
|
|
|
|
services:
|
|
support-bot:
|
|
image: simplex-support-bot:latest
|
|
build:
|
|
context: ../..
|
|
dockerfile: scripts/support-bot/Dockerfile
|
|
args:
|
|
LIBS: ${LIBS:-release}
|
|
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:
|
|
- "--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:
|
|
support-bot-data:
|