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:
wjbeckett
2025-07-18 12:54:08 +10:00
parent aaa025c2bb
commit df7d00ad99
8 changed files with 321 additions and 16 deletions

View File

@@ -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