Files
babybot/docker-compose.yml
gabrielvidalandClaude Opus 5.5 d3f7222134 feat: /babyfoot takes no arguments, always opens the modal; deploy script out of the repo
- /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>
2026-11-18 19:23:26 +01:00

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"