Update docker-compose.yml
This commit is contained in:
parent
48b188446b
commit
fa2c6e2a1c
1 changed files with 15 additions and 20 deletions
|
|
@ -1,5 +1,3 @@
|
||||||
version: '3.8'
|
|
||||||
|
|
||||||
# BREAKING CHANGE (v1.3+): Database volume mount changed from /app/database to /app/data
|
# BREAKING CHANGE (v1.3+): Database volume mount changed from /app/database to /app/data
|
||||||
# If upgrading from a previous version, update your docker-compose.yml:
|
# If upgrading from a previous version, update your docker-compose.yml:
|
||||||
# OLD: - soulsync_database:/app/database
|
# OLD: - soulsync_database:/app/database
|
||||||
|
|
@ -20,12 +18,12 @@ services:
|
||||||
- PYTHONPATH=/app
|
- PYTHONPATH=/app
|
||||||
# Optional: Configure through environment variables
|
# Optional: Configure through environment variables
|
||||||
- SOULSYNC_CONFIG_PATH=/app/config/config.json
|
- SOULSYNC_CONFIG_PATH=/app/config/config.json
|
||||||
# Set timezone
|
# Set timezone (change to your timezone)
|
||||||
- TZ=America/New_York
|
- TZ=America/New_York
|
||||||
ports:
|
ports:
|
||||||
- "8008:8008" # Main web app
|
- "8008:8008" # Main web app
|
||||||
- "8888:8888" # Spotify OAuth callback
|
- "8888:8888" # Spotify OAuth callback
|
||||||
- "8889:8889" # Tidal OAuth callback
|
- "8889:8889" # Tidal OAuth callback
|
||||||
volumes:
|
volumes:
|
||||||
# Persistent data volumes
|
# Persistent data volumes
|
||||||
- ./config:/app/config
|
- ./config:/app/config
|
||||||
|
|
@ -34,24 +32,21 @@ services:
|
||||||
# Use named volume for database persistence (separate from host database)
|
# Use named volume for database persistence (separate from host database)
|
||||||
# NOTE: Changed from /app/database to /app/data to avoid overwriting Python package
|
# NOTE: Changed from /app/database to /app/data to avoid overwriting Python package
|
||||||
- soulsync_database:/app/data
|
- soulsync_database:/app/data
|
||||||
# IMPORTANT: Mount the drives containing your download and transfer folders
|
# IMPORTANT: Mount host paths that your download/transfer folders live on.
|
||||||
# If your download/transfer paths are on E: drive, mount E: drive:
|
# Replace these examples with your actual paths:
|
||||||
- /mnt/e:/host/mnt/e:rw
|
# Linux/Mac: - /path/to/your/downloads:/host/downloads:rw
|
||||||
# Mount H: drive for transfer folder
|
# WSL: - /mnt/d/Music:/host/music:rw
|
||||||
- /mnt/h:/host/mnt/h:rw
|
# You can add as many mounts as needed for your setup.
|
||||||
# If your download/transfer paths are on C: drive, uncomment this line:
|
# - /path/to/downloads:/host/downloads:rw
|
||||||
# - /mnt/c:/host/mnt/c:rw
|
# - /path/to/transfer:/host/transfer:rw
|
||||||
# If your download/transfer paths are on D: drive, uncomment this line:
|
# Optional: Mount your music library for Plex/Jellyfin/Navidrome access
|
||||||
# - /mnt/d:/host/mnt/d:rw
|
# - /path/to/your/music:/music:ro
|
||||||
# Add additional drive mounts as needed for your specific setup
|
|
||||||
# Optional: Mount your music library for Plex/Jellyfin access
|
|
||||||
- /path/to/your/music:/music:ro
|
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
# Allow container to reach host services
|
# Allow container to reach host services
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8888/"]
|
test: [ "CMD", "curl", "-f", "http://localhost:8888/" ]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|
@ -74,4 +69,4 @@ volumes:
|
||||||
# Optional: Add external network for communication with other containers
|
# Optional: Add external network for communication with other containers
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
name: soulsync-network
|
name: soulsync-network
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue