- Replace apk yt-dlp with pip3 install to get current version with ytmsearch support - Split mainArtist on comma in downloadTrack so multi-artist tracks always land in the primary artist folder (e.g. "Artist1, Artist2" → Artist1/) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 lines
1.5 KiB
YAML
38 lines
1.5 KiB
YAML
services:
|
|
|
|
# ── Frontend (nginx) ──────────────────────────────────────────────────────────
|
|
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} # pre-filled on the setup screen
|
|
|
|
# ── Backend (yt-dlp download server) ─────────────────────────────────────────
|
|
novasonic-backend:
|
|
image: node:20-alpine
|
|
container_name: novasonic-backend
|
|
restart: unless-stopped
|
|
working_dir: /app
|
|
volumes:
|
|
- ./backend/novasonic-server.js:/app/novasonic-server.js:ro
|
|
- ${MUSIC_PATH}:${MUSIC_PATH} # exact path from .env, no remapping
|
|
ports:
|
|
- "3700:3700" # route this port through your reverse proxy
|
|
environment:
|
|
- PORT=3700
|
|
- MUSIC_PATH=${MUSIC_PATH} # same path inside the container
|
|
- AUDIO_FMT=${AUDIO_FMT:-mp3}
|
|
- AUDIO_QUALITY=${AUDIO_QUALITY:-0}
|
|
- MAX_PARALLEL=${MAX_PARALLEL:-2}
|
|
command: >
|
|
sh -c "
|
|
apk add --no-cache ffmpeg python3 py3-pip &&
|
|
pip3 install -U yt-dlp --break-system-packages &&
|
|
npm install express cors &&
|
|
node novasonic-server.js
|
|
"
|