mirror of
https://github.com/Dokploy/templates.git
synced 2026-03-12 01:56:43 -05:00
fix: use caddy built-in metrics endpoint for health check to avoid early closed conns. (#153)
This commit is contained in:
@@ -94,7 +94,14 @@ services:
|
||||
- BASE_URL=":80"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "--quiet", "http://127.0.0.1:80"]
|
||||
test:
|
||||
[
|
||||
"CMD",
|
||||
"wget",
|
||||
"--spider",
|
||||
"--no-verbose",
|
||||
"http://127.0.0.1:2019/metrics",
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user