31 lines
1.1 KiB
YAML
31 lines
1.1 KiB
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"
|
|
# the cookie folder below (overrides an older YT_COOKIE_PATH in .env)
|
|
YT_COOKIE_PATH: /run/secrets/music_quiz/ytm_cookie.txt
|
|
ports:
|
|
- "${APP_PORT:-2974}:3000"
|
|
volumes:
|
|
- app-data:/data
|
|
# YouTube Music cookie (song search, 연령제한 음원). Writable: the server renews the cookie's session values in the file
|
|
# (collector/cookie-keeper.ts). The folder, not the file, so a cookie file replaced on the host is seen without a restart.
|
|
- ${YT_COOKIE_HOST_DIR:-/home/claude/.config/music_quiz}:/run/secrets/music_quiz
|
|
mem_limit: 1g
|
|
stop_grace_period: 15s
|
|
logging:
|
|
driver: json-file
|
|
options: { max-size: "50m", max-file: "5" }
|
|
|
|
volumes:
|
|
app-data:
|