diff --git a/app.py b/app.py index d76bdce..3b4b3b8 100644 --- a/app.py +++ b/app.py @@ -291,6 +291,11 @@ def screenshot_image(): return send_from_directory(Path(__file__).parent, 'screenshot.png', mimetype='image/png') +@app.route('/health') +def health_check(): + """Health-Check für Docker/Container-Monitoring - wird NICHT geloggt""" + return {'status': 'healthy', 'timestamp': datetime.now().isoformat()} + @app.route('/login', methods=['GET', 'POST']) def login(): diff --git a/docker-compose.yml b/docker-compose.yml index d477e61..5010071 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,7 +18,7 @@ services: user: "1000:1000" # Healthcheck für Container-Status healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000/"] + test: ["CMD", "curl", "-f", "http://localhost:8000/health"] interval: 30s timeout: 10s retries: 3