Repository navigation
feat(docker): add healthcheck to hub docker-compose example - #2001
Merged
henrygd merged 2 commits intoMay 20, 2026
Merged
Conversation
The hub image is distroless so wget/curl are not available. The binary exposes a health subcommand that performs an HTTP self-check, making it suitable for use as a Docker HEALTHCHECK. Verified working on henrygd/beszel:0.18.7: docker exec beszel /beszel health --url http://127.0.0.1:8090 exit code 0
Contributor
Author
|
Also added the healthcheck to supplemental/docker/same-system/docker-compose.yml since it includes the hub service as well and has the same issue |
Owner
|
Thanks! |
xiaoran7
pushed a commit
to xiaoran7/beszel
that referenced
this pull request
Oct 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
healthcheckdirective tosupplemental/docker/hub/docker-compose.yml.Why
The hub image is distroless — no shell, no
wget, nocurl— so the typical healthcheck patterns fail silently. The binary already exposes ahealthsubcommand that performs an HTTP self-check, making it a natural fit forHEALTHCHECK.Without this, containers running the distroless hub image show as "running" indefinitely even when wedged, with no orchestrator-level liveness signal and no automatic restart policy trigger.
Verification
Tested on
henrygd/beszel:0.18.7:Closes #1963