2단계 배포 파일: Dockerfile·compose(2974, 메모리 1GB, 쿠키 읽기 전용)·NPMplus 보안 헤더(유튜브 플레이어 허용, noindex)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-18 19:46:31 +09:00
parent 391bbe69e5
commit 992621e70a
5 changed files with 86 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# 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: