Files
Audiolib/docker-compose.yml
Audiolib a6577e5865 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>
2026-05-26 14:47:24 +02:00

37 lines
812 B
YAML

services:
backend:
build: ./backend
container_name: audiolib-backend
restart: unless-stopped
env_file: .env
volumes:
- ./data:/app/data
- ${AUDIOFILES_PATH:-./audiofiles}:${AUDIOFILES_PATH:-/audiofiles}:ro
expose:
- "8000"
depends_on: []
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build: ./frontend
container_name: audiolib-frontend
restart: unless-stopped
expose:
- "80"
nginx:
image: nginx:1.25-alpine
container_name: audiolib-nginx
restart: unless-stopped
ports:
- "${SERVER_PORT:-3000}:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend
- frontend