Commit 287a49a
committed
Add Docker healthcheck with migration-friendly timings
Add HEALTHCHECK instruction to monitor Gitea service health using the
/api/healthz endpoint. Configured with:
- interval: 2m (check every 2 minutes, Gitea isn't that sensitive)
- start-period: 2m (allows time for migrations during upgrades)
- timeout: 10s
- retries: 3
This helps container orchestrators detect and restart unhealthy instances
while avoiding restarts during normal startup or database migrations.1 parent c22204e commit 287a49a
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
0 commit comments