- Neue Routen: /login, /stats, /logout - Session-basierte Authentifizierung - Umfassende Statistiken: Seitenaufrufe, Suchvorgänge, Quellen - Environment-Variablen: ADMIN_PASSWORD, FLASK_SECRET_KEY - Docker-Integration mit docker-compose.yml - Responsive UI mit Charts und Aktivitätsprotokoll
31 lines
882 B
YAML
31 lines
882 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/"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
# Explizite Volume-Definition für Logs
|
|
logs:
|
|
driver: local
|
|
|