mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-02-19 23:49:11 -05:00
- 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.
31 lines
864 B
YAML
31 lines
864 B
YAML
services:
|
|
mediamanager:
|
|
image: ghcr.io/maxdorninger/mediamanager/mediamanager:latest
|
|
ports:
|
|
- "8000:8000"
|
|
environment:
|
|
- CONFIG_DIR=/app/config
|
|
volumes:
|
|
# 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
|
|
volumes:
|
|
- ./postgres:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
environment:
|
|
POSTGRES_USER: MediaManager
|
|
POSTGRES_DB: MediaManager
|
|
POSTGRES_PASSWORD: MediaManager
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
|