mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 15:13:24 +02:00
feat: improve container setup and fix deployment issues
- Move images directory from /data/images to /app/images to separate app data from user media - Implement config folder approach instead of direct file mounting - Add automatic config initialization with example config on first boot - Remove hardcoded media directory environment variables from Dockerfile - Update startup script to handle config folder setup and validation - Only create application-managed directories, not user media directories - Update docker-compose.yaml to use config folder volume mapping Fixes container startup failures when config.toml doesn't exist and improves separation between application data and user media directories.
This commit is contained in:
@@ -4,10 +4,12 @@ services:
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
- CONFIG_FILE=/app/config.toml
|
||||
- CONFIG_DIR=/app/config
|
||||
volumes:
|
||||
- ./data/:/data/
|
||||
- ./config.toml:/app/config.toml
|
||||
# Mount your actual media directories here - these paths should match your config.toml
|
||||
- ./data/:/data/ # Example: change ./data/ to your actual media root
|
||||
# Config folder for application configuration
|
||||
- ./config/:/app/config/
|
||||
db:
|
||||
image: postgres:latest
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user