Files
AudioApp/docker-compose.yml

23 lines
668 B
YAML

services:
carplay-audio:
build: .
container_name: carplay-audio-server
restart: unless-stopped
ports:
- "4000:4000"
volumes:
# Mount your music library (change the left path to your music folder)
- /Volumes/Data/Music:/data/music:ro
# 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
timeout: 10s
retries: 3
start_period: 40s