From f10c27c125662b656a6f833455071891c2bf0bdf Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Sat, 13 Sep 2025 15:12:23 -0700 Subject: [PATCH] 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. --- .dockerignore | 1 + Dockerfile | 4 ++++ config/config.example.json | 6 +++--- docker-compose.yml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index 478cef47..de93ff60 100644 --- a/.dockerignore +++ b/.dockerignore @@ -34,6 +34,7 @@ database/*.db database/*.db-shm database/*.db-wal config/config.json +!config/config.example.json downloads/* !downloads/.gitkeep Transfer/* diff --git a/Dockerfile b/Dockerfile index 10ab9421..62a4b955 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,10 @@ COPY . . RUN mkdir -p /app/config /app/database /app/logs /app/downloads /app/Transfer && \ 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 VOLUME ["/app/config", "/app/database", "/app/logs", "/app/downloads", "/app/Transfer"] diff --git a/config/config.example.json b/config/config.example.json index 951c7d86..5ac9d86c 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -21,10 +21,10 @@ "auto_detect": true }, "soulseek": { - "slskd_url": "http://localhost:5030", + "slskd_url": "http://host.docker.internal:5030", "api_key": "SoulseekAPIKey", - "download_path": "./Downloads", - "transfer_path": "./Transfer" + "download_path": "/app/downloads", + "transfer_path": "/app/Transfer" }, "logging": { "path": "logs/app.log", diff --git a/docker-compose.yml b/docker-compose.yml index 20763921..f8ffa95e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: - "8889:8889" # Tidal OAuth callback volumes: # Persistent data volumes - - ./config:/app/config + # - ./config:/app/config # Commented out to test baked-in config - ./logs:/app/logs - ./downloads:/app/downloads # Use named volume for database persistence (separate from host database)