Files
wordle-cheater/docker-compose.yml
elpatron f5b9532c86 Health-Check: Dedizierter Endpunkt /health implementiert
- Neue Route /health für Container-Monitoring
- Wird NICHT geloggt oder statistisch ausgewertet
- Schnelle JSON-Antwort mit Status und Zeitstempel
- Docker Health-Check nutzt jetzt /health statt /
- Optimiert für Container-Health-Monitoring
2025-08-23 11:33:46 +02:00

31 lines
888 B
YAML

services:
wordle-helper:
build: .
ports:
- "8000:8000"
volumes:
# Logs-Verzeichnis als Volume mounten
- ./logs:/app/logs
# Optional: Statische Dateien für Entwicklung
- ./static:/app/static:ro
environment:
- PYTHONUNBUFFERED=1
- FLASK_ENV=production
- FLASK_SECRET_KEY=${FLASK_SECRET_KEY:-your-secret-key-change-this}
- ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123}
restart: unless-stopped
# Container läuft als nicht-root User für bessere Sicherheit
user: "1000:1000"
# Healthcheck für Container-Status
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
# Explizite Volume-Definition für Logs
logs:
driver: local