services: flask-app: image: python:3.11-slim container_name: bethaus-app restart: always working_dir: /app volumes: - ./:/app - ./filecache:/app/filecache - ./templates:/app/templates - /mnt/app.bethaus:/mp3_root:ro environment: - FLASK_APP=app.py - FLASK_RUN_HOST=0.0.0.0 - FLASK_ENV=production - MP3_ROOT=/mp3_root ports: - "5000:5000" command: > sh -c "pip install -r requirements.txt && flask run"