Add HEALTHCHECK to Dockerfile #18

Open
opened 2026-07-25 11:18:34 +00:00 by GKaszewski · 0 comments
Owner

Severity: Low

The Dockerfile exposes port 8000 and has a /health endpoint defined in routes, but no HEALTHCHECK instruction. Docker Compose and orchestrators benefit from this:

HEALTHCHECK --interval=30s --timeout=5s \
  CMD wget -qO- http://localhost:8000/health || exit 1
**Severity: Low** The Dockerfile exposes port 8000 and has a `/health` endpoint defined in routes, but no `HEALTHCHECK` instruction. Docker Compose and orchestrators benefit from this: ```dockerfile HEALTHCHECK --interval=30s --timeout=5s \ CMD wget -qO- http://localhost:8000/health || exit 1 ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: GKaszewski/thoughts#18