bethaus-app/docker-compose.yml
2025-03-16 19:54:47 +01:00

30 lines
633 B
YAML

services:
flask-app:
image: python:3.11-slim
container_name: flask-app
restart: always
working_dir: /app
volumes:
- ./:/app
- filecache:/app/filecache
- templates:/app/templates
- mp3_root:/mp3_root
environment:
- FLASK_APP=app.py
- FLASK_RUN_HOST=0.0.0.0
- MP3_ROOT=/mp3_root
ports:
- "5000:5000"
command: >
sh -c "pip install flask pillow diskcache && flask run"
volumes:
filecache:
templates:
mp3_root:
driver: local
driver_opts:
type: nfs
o: addr=127.0.0.1,rw,nolock,soft
device: ":/path/to/your/nfs/export"