healthcheck

This commit is contained in:
2026-08-09 16:12:34 +02:00
parent a877ae945d
commit ee760f9cb0
4 changed files with 102 additions and 0 deletions
+36
View File
@@ -139,6 +139,42 @@ Content-Type: application/json
[1, 3, 2, 4]
```
### Health Check
```http
GET /api/health
```
Response (200 OK):
```json
{
"status": "healthy",
"database": "connected",
"timestamp": "2026-08-09T12:00:00Z",
"version": "2.0.0"
}
```
Response (503 Service Unavailable):
```json
{
"status": "unhealthy",
"database": "disconnected",
"timestamp": "2026-08-09T12:00:00Z",
"version": "2.0.0"
}
```
**Uptime Kuma Konfiguration:**
- URL: `http://localhost:5000/api/health`
- Methode: GET
- Erwarteter Status: 200
- Intervall: 60 Sekunden
**Docker Healthcheck:**
- Automatisch in `docker-compose.yml` konfiguriert
- Prüft alle 30 Sekunden den Health Endpoint
- Container wird als `healthy`/`unhealthy` markiert
## 🎯 Entwicklung
### Backend (Development)