Files
you-music/docker-compose.yml
T
2025-10-30 17:31:29 +11:00

23 lines
599 B
YAML

version: '3.8'
services:
youmusic:
build: .
ports:
- "8000:8000"
volumes:
- ./data:/app/data
# Note: Do not mount ./backend in production - it overwrites the built image
# For development, use ./dev.sh instead
environment:
- DATABASE_URL=sqlite+aiosqlite:////app/data/youmusic.db
- MUSIC_DIR=/app/data/music
- UPLOAD_DIR=/app/data/uploads
- TEMP_DIR=/app/data/temp
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3