Mount AUDIOFILES_PATH to same path inside container

Previously AUDIOFILES_PATH=/media was mounted as /audiofiles in the
container, so the file browser showed /audiofiles instead of /media.
Now the host path is preserved inside the container, so /media stays
/media. The default (./audiofiles) still maps to /audiofiles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Audiolib
2026-05-26 14:47:24 +02:00
parent 18d1481681
commit a6577e5865
2 changed files with 4 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ services:
env_file: .env
volumes:
- ./data:/app/data
- ${AUDIOFILES_PATH:-./audiofiles}:/audiofiles:ro
- ${AUDIOFILES_PATH:-./audiofiles}:${AUDIOFILES_PATH:-/audiofiles}:ro
expose:
- "8000"
depends_on: []