Namen getauscht: das Standard-Compose zieht jetzt die fertigen Registry-Images (vorher docker-compose.prod.yml), die Build-Variante heisst docker-compose.dev.yml. Weniger verwirrend, weil der Produktivfall ohne -f auskommt. Kopfkommentare, README, CLAUDE.md, .env.example und build-push-images.mjs entsprechend angepasst. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
68 lines
2.7 KiB
YAML
68 lines
2.7 KiB
YAML
# NovaSonic — DEV/Selbstbauen: baut lokal aus den Dockerfiles statt Images zu ziehen. Die schweren
|
|
# Deps (ffmpeg, Deno, yt-dlp, node libs) stecken in den Images, also sind RESTARTS sofort da und ein
|
|
# Rebuild nach Code-Änderungen ist schnell (Docker cacht die Dep-Layer — nur der COPY-Layer ändert sich).
|
|
#
|
|
# git pull
|
|
# docker compose -f docker-compose.dev.yml up -d --build # geänderte Images neu bauen + starten
|
|
# docker compose -f docker-compose.dev.yml up -d # nur starten, mit den gebauten Images
|
|
#
|
|
# Keine Registry nötig. Der Normalfall (fertige Images ziehen) ist docker-compose.yml.
|
|
services:
|
|
|
|
# ── Frontend (nginx serving the built PWA) ───────────────────────────────────
|
|
novasonic-frontend:
|
|
build: .
|
|
container_name: novasonic-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8080:80" # route this port through your reverse proxy
|
|
environment:
|
|
- NAVIDROME_URL=${NAVIDROME_URL} # pre-filled on the setup screen
|
|
- BACKEND_URL=${BACKEND_URL}
|
|
- SCROBBLE_URL=${SCROBBLE_URL}
|
|
|
|
# ── Backend (yt-dlp download server) ─────────────────────────────────────────
|
|
novasonic-backend:
|
|
build:
|
|
context: ./backend
|
|
container_name: novasonic-backend
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${MUSIC_PATH}:${MUSIC_PATH} # exact path from .env, no remapping
|
|
- novasonic-data:/data # writable data dir for overrides, state, etc.
|
|
ports:
|
|
- "3700:3700"
|
|
environment:
|
|
- PORT=3700
|
|
- MUSIC_PATH=${MUSIC_PATH}
|
|
- DATA_PATH=/data
|
|
- AUDIO_FMT=${AUDIO_FMT:-mp3}
|
|
- AUDIO_QUALITY=${AUDIO_QUALITY:-0}
|
|
- MAX_PARALLEL=${MAX_PARALLEL:-2}
|
|
- DOWNLOAD_BACKEND=${DOWNLOAD_BACKEND:-ytdlp}
|
|
- TICKETMASTER_API_KEY=${TICKETMASTER_API_KEY}
|
|
# Android APK download button — backend proxies the fixed Gitea release ("apk-latest").
|
|
- GITEA_URL=${GITEA_URL:-}
|
|
- GITEA_REPO=${GITEA_REPO:-}
|
|
- GITEA_TOKEN=${GITEA_TOKEN:-}
|
|
- GITEA_APK_TAG=${GITEA_APK_TAG:-apk-latest}
|
|
|
|
# ── Scrobble service (isolated timestamped play-log → stats + Wrapped) ────────
|
|
novasonic-scrobble:
|
|
build:
|
|
context: ./scrobble
|
|
container_name: novasonic-scrobble
|
|
restart: unless-stopped
|
|
volumes:
|
|
- novasonic-scrobble-data:/data # own DB volume, isolated from downloads
|
|
ports:
|
|
- "3710:3710"
|
|
environment:
|
|
- PORT=3710
|
|
- DATA_PATH=/data
|
|
- NAVIDROME_URL=${NAVIDROME_URL} # for ping.view auth verification
|
|
|
|
volumes:
|
|
novasonic-data:
|
|
novasonic-scrobble-data:
|