Add Trivia Murder Party 3 (Playtest) ticker and seed data. Bind-mount tickers.json in docker-compose so ticker changes take effect on restart without image rebuilds. Fix shard monitor probe poisoning game lifecycle state — the player-count probe no longer sets gameFinished, which was preventing the main WS from processing room/lock and room/exit for games like TMP3 that don't send entity updates. Co-authored-by: Cursor <cursoragent@cursor.com>
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: jackbox-backend
|
|
restart: unless-stopped
|
|
environment:
|
|
- PORT=5000
|
|
- NODE_ENV=production
|
|
- DB_PATH=/app/data/jackbox.db
|
|
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
|
|
- ADMIN_KEY=${ADMIN_KEY:-}
|
|
- ADMIN_CONFIG_PATH=${ADMIN_CONFIG_PATH:-}
|
|
- DEBUG=false
|
|
volumes:
|
|
- jackbox-data:/app/data
|
|
- ./games-list.csv:/app/games-list.csv:ro,z
|
|
- ./backend/config/admins.json:/app/config/admins.json:ro,z
|
|
- ./backend/config/tickers.json:/app/config/tickers.json:ro,z
|
|
ports:
|
|
- "5000:5000"
|
|
networks:
|
|
- jackbox-network
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:5000/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
container_name: jackbox-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3000:80"
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
networks:
|
|
- jackbox-network
|
|
|
|
networks:
|
|
jackbox-network:
|
|
driver: bridge
|
|
|
|
volumes:
|
|
jackbox-data:
|
|
driver: local
|
|
|