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:
parent
bc3136e5a7
commit
f10c27c125
4 changed files with 9 additions and 4 deletions
|
|
@ -34,6 +34,7 @@ database/*.db
|
|||
database/*.db-shm
|
||||
database/*.db-wal
|
||||
config/config.json
|
||||
!config/config.example.json
|
||||
downloads/*
|
||||
!downloads/.gitkeep
|
||||
Transfer/*
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue