mirror of
https://github.com/Dokploy/templates.git
synced 2026-03-13 18:45:05 -05:00
[PR #153] [MERGED] fix(update): use caddy built-in metrics endpoint for health check #249
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/153
Author: @rexwangcc
Created: 5/25/2025
Status: ✅ Merged
Merged: 6/1/2025
Merged by: @Siumauricio
Base:
main← Head:rex/feat/fix-warnings-around-caddy-health-checks📝 Commits (2)
007c94dfix: use caddy built-in metrics endpoint for health check to avoid early closed conns.1633ce2Merge branch 'main' into rex/feat/fix-warnings-around-caddy-health-checks📊 Changes
1 file changed (+8 additions, -1 deletions)
View changed files
📝
blueprints/rybbit/docker-compose.yml(+8 -1)📄 Description
Why
With the current health check, we'd get tons of warning logs under the
Caddycontainer complaining something like:it is because for the current health check
["CMD", "wget", "--spider", "--quiet", "http://127.0.0.1:80"], the--spiderflag tells wget to not download the response body - it just checks if the URL exists and then immediately closes the connection; however,RybbitNext app is trying to send the full response, but wget has already closed the connection, causing the "broken pipe" error.How
curlto perform the health checks, butcaddyimage does not come with itcaddy_clickhouse, and docker compose's conventions, apparently we want to scope the health checks to its own service rather than let it cascade, so I changed the health check to only probecaddy's built-in/metricsendpoint--no-verboseover--quietfor logging purposes, former does not suppress errors.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.