Skip to content

Conversation

@comxd
Copy link
Contributor

@comxd comxd commented Dec 5, 2025

Summary

Add health check functionality to all Docker examples for better container orchestration support (Docker, Kubernetes, ECS, etc.):

  • Add /api/health endpoint returning { status: "ok" }
  • Add curl package to Alpine images for health check command
  • Add HEALTHCHECK instruction to all production Dockerfiles

Affected examples

  • with-docker
  • with-docker-compose
  • with-docker-multi-env

Test plan

  • Build Docker image for each example
  • Verify /api/health endpoint returns { status: "ok" }
  • Verify docker inspect --format='{{.State.Health.Status}}' returns healthy

@ijjk ijjk added the examples Issue was opened via the examples template. label Dec 5, 2025
@ijjk
Copy link
Member

ijjk commented Dec 5, 2025

Allow CI Workflow Run

  • approve CI run for commit: 34793b5

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@comxd comxd force-pushed the feat/docker-healthcheck branch from 29891f4 to 34793b5 Compare December 5, 2025 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

examples Issue was opened via the examples template.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants