# NovaSonic — builds locally from the Dockerfiles. The heavy deps (ffmpeg, Deno, yt-dlp, node libs) # are baked into the images, so container RESTARTS are instant, and a rebuild after a code change is # fast (Docker caches the dep layers — only the code COPY layer changes). # # git pull # docker compose up -d --build # rebuild changed images (cached; fast) and (re)start # docker compose up -d # just (re)start with the already-built images # # No registry needed. (An optional pull-from-registry / CI flow can build these same Dockerfiles # elsewhere and push — see scripts/build-push-images.mjs + .env.example.) 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: