Implement health check API and update health check commands in Docker and Docker Compose

This commit is contained in:
Arunavo Ray
2025-05-22 08:39:07 +05:30
parent 32ef9124a7
commit a15178d2cd
4 changed files with 205 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ services:
- DATABASE_URL=sqlite://data/gitea-mirror.db
- DELAY=${DELAY:-3600}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4321/health"]
test: ["CMD", "curl", "-f", "http://localhost:4321/api/health"]
interval: 1m
timeout: 10s
retries: 3