fix: use caddy built-in metrics endpoint for health check to avoid early closed conns. (#153)

This commit is contained in:
Rex
2025-06-02 04:52:31 +08:00
committed by GitHub
parent c8c9d138d1
commit b51036d4af

View File

@@ -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