Fix Docker volume mounts and database path for proper persistence
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user