28 lines
825 B
YAML
28 lines
825 B
YAML
# App behind NPMplus (192.168.10.3 → .9:2974), docs/09.
|
|
# cd deploy && docker --context default compose -f docker-compose.proxy.yml up -d --build
|
|
name: music_quiz
|
|
services:
|
|
app:
|
|
build:
|
|
context: ..
|
|
dockerfile: deploy/Dockerfile
|
|
image: music-quiz:${APP_VERSION:-latest}
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
environment:
|
|
TRUST_PROXY: "1"
|
|
ports:
|
|
- "${APP_PORT:-2974}:3000"
|
|
volumes:
|
|
- app-data:/data
|
|
# YouTube Music cookie for song search (collector / admin autofill, later stages). Read-only.
|
|
- ${YT_COOKIE_HOST_PATH:-/home/claude/.config/music_quiz/ytm_cookie.txt}:/run/secrets/ytm_cookie.txt:ro
|
|
mem_limit: 1g
|
|
stop_grace_period: 15s
|
|
logging:
|
|
driver: json-file
|
|
options: { max-size: "50m", max-file: "5" }
|
|
|
|
volumes:
|
|
app-data:
|