feat: add persistent Koel configuration via environment variables

- Add MEDIA_PATH, STORAGE_DRIVER, TRUSTED_PROXIES, and FORCE_HTTPS to environment
- Apply settings to both koel and koel_init containers
- Ensures configuration persists across container restarts without manual intervention

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-15 06:44:32 +01:00
parent 9cdc6ee409
commit 49a97755bc

View File

@@ -89,6 +89,12 @@ services:
DB_PASSWORD: ${DB_PASSWORD}
MEMORY_LIMIT: ${MEDIA_KOEL_MEMORY_LIMIT:-512M}
STREAMING_METHOD: ${MEDIA_KOEL_STREAMING_METHOD:-x-sendfile}
# Media and storage configuration
MEDIA_PATH: /music
STORAGE_DRIVER: local
# Proxy configuration
TRUSTED_PROXIES: '*'
FORCE_HTTPS: 'true'
networks:
- compose_network
labels:
@@ -133,6 +139,12 @@ services:
DB_DATABASE: ${MEDIA_KOEL_DB_NAME}
DB_USERNAME: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
# Media and storage configuration
MEDIA_PATH: /music
STORAGE_DRIVER: local
# Proxy configuration
TRUSTED_PROXIES: '*'
FORCE_HTTPS: 'true'
networks:
- compose_network