You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Docker-native healthchecks in the scratch image #49
The official Docker image uses FROM scratch and contains no shell, wget, or curl. Although ZenNotes exposes /healthz, this prevents conventional Docker Compose healthchecks from working.
For self-hosted deployments using Coolify or other Compose-based platforms, there's currently no straightforward way to expose native Docker health status without customizing the image.
Proposal
Could the server binary provide a built-in healthcheck command?
Thank you, this is a good catch. Done in 0318fd3 as you proposed: the binary now has a healthcheck command that calls /healthz on the server running in the container and exits 0 or 1.
The image also carries a HEALTHCHECK, so docker ps shows healthy or unhealthy and depends_on: condition: service_healthy works with no extra setup. The default timings are the ones you suggested (30s interval, 5s timeout, 3 retries, 30s start period), and you can set your own with the Compose block in the README. It follows ZENNOTES_BIND and ZENNOTES_BASE_PATH.
One limit: a pass means the server is answering, not that the vault is readable.
Activity
Fix(docker): the healthcheck survives IPv6 off, odd base paths and pr…
Feat(docker): the image reports its own health (#68)
adibhanna commentedon Nov 4, 2026
Thank you, this is a good catch. Done in 0318fd3 as you proposed: the binary now has a
healthcheckcommand that calls/healthzon the server running in the container and exits 0 or 1.The image also carries a
HEALTHCHECK, sodocker psshowshealthyorunhealthyanddepends_on: condition: service_healthyworks with no extra setup. The default timings are the ones you suggested (30s interval, 5s timeout, 3 retries, 30s start period), and you can set your own with the Compose block in the README. It followsZENNOTES_BINDandZENNOTES_BASE_PATH.One limit: a pass means the server is answering, not that the vault is readable.
It ships in the next server release.