Fix Docker volume mounts and database path for proper persistence

This commit is contained in:
2025-12-08 00:14:44 +00:00
parent 159d2be52d
commit ee433157f4
3 changed files with 11 additions and 8 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
carplay-audio:
build: .
@@ -10,13 +8,12 @@ services:
volumes:
# Mount your music library (change the left path to your music folder)
- /Volumes/Data/Music:/data/music:ro
# Persistent data (database, artwork, config)
- ./data/artwork:/app/artwork
- ./data/database/audio_server.db:/app/audio_server.db
- ./data/database/config.json:/app/config.json
# Persistent data (database and artwork stored in data directory)
- ./data:/app/data
environment:
- NODE_ENV=production
- PORT=4000
- DB_PATH=/app/data/audio_server.db
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:4000/health"]
interval: 30s