Update Docker setup and config paths

Improves Docker integration by copying config.example.json as the default config.json and updating ownership in the Dockerfile. Adjusts config paths in config.example.json for container compatibility and updates docker-compose.yml to build the image and comment out the config volume for baked-in config testing. Also updates .dockerignore to allow config.example.json.
This commit is contained in:
Broque Thomas 2025-09-13 15:12:23 -07:00
parent bc3136e5a7
commit f10c27c125
4 changed files with 9 additions and 4 deletions

View file

@ -34,6 +34,7 @@ database/*.db
database/*.db-shm database/*.db-shm
database/*.db-wal database/*.db-wal
config/config.json config/config.json
!config/config.example.json
downloads/* downloads/*
!downloads/.gitkeep !downloads/.gitkeep
Transfer/* Transfer/*

View file

@ -30,6 +30,10 @@ COPY . .
RUN mkdir -p /app/config /app/database /app/logs /app/downloads /app/Transfer && \ RUN mkdir -p /app/config /app/database /app/logs /app/downloads /app/Transfer && \
chown -R soulsync:soulsync /app chown -R soulsync:soulsync /app
# Copy example config as default config.json and set proper ownership
RUN cp /app/config/config.example.json /app/config/config.json && \
chown soulsync:soulsync /app/config/config.json
# Create volume mount points # Create volume mount points
VOLUME ["/app/config", "/app/database", "/app/logs", "/app/downloads", "/app/Transfer"] VOLUME ["/app/config", "/app/database", "/app/logs", "/app/downloads", "/app/Transfer"]

View file

@ -21,10 +21,10 @@
"auto_detect": true "auto_detect": true
}, },
"soulseek": { "soulseek": {
"slskd_url": "http://localhost:5030", "slskd_url": "http://host.docker.internal:5030",
"api_key": "SoulseekAPIKey", "api_key": "SoulseekAPIKey",
"download_path": "./Downloads", "download_path": "/app/downloads",
"transfer_path": "./Transfer" "transfer_path": "/app/Transfer"
}, },
"logging": { "logging": {
"path": "logs/app.log", "path": "logs/app.log",

View file

@ -10,7 +10,7 @@ services:
- "8889:8889" # Tidal OAuth callback - "8889:8889" # Tidal OAuth callback
volumes: volumes:
# Persistent data volumes # Persistent data volumes
- ./config:/app/config # - ./config:/app/config # Commented out to test baked-in config
- ./logs:/app/logs - ./logs:/app/logs
- ./downloads:/app/downloads - ./downloads:/app/downloads
# Use named volume for database persistence (separate from host database) # Use named volume for database persistence (separate from host database)