docker.dateiverwaltung/Source/docker-compose.yml

34 lines
868 B
YAML
Executable file

version: '3.8'
services:
dateiverwaltung:
build: .
container_name: dateiverwaltung
restart: unless-stopped
ports:
- "8080:8000"
volumes:
# Regeln mounten
- ./regeln:/app/regeln
# Zugriff auf externe Mounts (NAS, etc.)
- /mnt:/mnt
environment:
- TZ=Europe/Berlin
- DATABASE_URL=mysql+pymysql://data:8715@192.168.155.83/dateiverwaltung
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
# Optional: Automatische Ausführung via Cron
# scheduler:
# build: .
# container_name: dateiverwaltung-scheduler
# command: >
# sh -c "while true; do
# sleep 3600;
# curl -X POST http://dateiverwaltung:8000/api/pipelines/1/run;
# done"
# depends_on:
# - dateiverwaltung