- /babyfoot ignores any text and opens the modal (now, first table); no usage hint in the manifest - scripts/deploy.sh is gitignored (host names and paths); the docs say docker compose instead Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
993 B
YAML
30 lines
993 B
YAML
# Babybot — `docker compose up -d --build`, next to its .env (chmod 600).
|
|
#
|
|
# Socket Mode: the bot dials out to Slack over a WebSocket. No port is
|
|
# published and it joins no other network: nothing reaches it, it needs no
|
|
# route in Traefik or zipgo. No state either — a game's players live in its
|
|
# Slack button's `value` — so there is no volume and the root filesystem is
|
|
# read-only.
|
|
services:
|
|
babybot:
|
|
build: .
|
|
image: babybot:local
|
|
container_name: babybot
|
|
restart: unless-stopped
|
|
env_file: .env # SLACK_BOT_TOKEN (xoxb-…) + SLACK_APP_TOKEN (xapp-…), chmod 600
|
|
environment:
|
|
TZ: Europe/Paris # log timestamps; app.js formats times in Europe/Paris itself
|
|
NODE_OPTIONS: --max-old-space-size=96
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:size=8m
|
|
cap_drop: [ALL]
|
|
security_opt: [no-new-privileges:true]
|
|
mem_limit: 160m
|
|
pids_limit: 64
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "1m"
|
|
max-file: "3"
|