Skip to content

fix: add Docker HEALTHCHECK to Dockerfile - #1332

Closed
zichen0116 wants to merge 1 commit into
nesquena:masterfrom
zichen0116:fix/dockerfile-healthcheck
Closed

zichen0116 wants to merge 1 commit into
nesquena:masterfrom
zichen0116:fix/dockerfile-healthcheck

Conversation

@zichen0116

Copy link
Copy Markdown
Contributor

Description

The Dockerfile was missing a HEALTHCHECK instruction, which means Docker and Docker Compose can't automatically detect when the container is healthy.

The /health endpoint already exists and returns {"status": "ok"}, so this is a straightforward addition.

Changes

Added HEALTHCHECK instruction to Dockerfile:

HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
  CMD curl -f http://localhost:8787/health || exit 1

This enables:

  • docker ps shows healthy/unhealthy status
  • Docker Compose depends_on with condition: service_healthy works
  • Orchestration tools (K8s, Swarm) can use native health probes

The Dockerfile was missing a HEALTHCHECK instruction.
Docker and Docker Compose can now automatically detect
when the container is healthy using the /health endpoint.
@nesquena-hermes

Copy link
Copy Markdown
Collaborator

Shipped in v0.50.245 via batch release PR #1334 (merge commit 52e1567). Thanks @zichen0116! 🙏

Live now at https://github.com/nesquena/hermes-webui/releases/tag/v0.50.245.

Released alongside 9 other contributor fixes — see the v0.50.245 entry in CHANGELOG.md.

bsgdigital pushed a commit to bsgdigital/hermes-webui that referenced this pull request Apr 30, 2026
From PR nesquena#1332.

Co-authored-by: Leon.C <160379708+zichen0116@users.noreply.github.com>
GeoffBao pushed a commit to GeoffBao/hermes-webui that referenced this pull request May 1, 2026
From PR nesquena#1332.

Co-authored-by: Leon.C <160379708+zichen0116@users.noreply.github.com>
SysAdminDoc pushed a commit to SysAdminDoc/hermes-webui that referenced this pull request Jun 26, 2026
From PR nesquena#1332.

Co-authored-by: Leon.C <160379708+zichen0116@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants