kratos icon indicating copy to clipboard operation
kratos copied to clipboard

Docker Image Healthcheck

Open halvardssm opened this issue 3 years ago • 0 comments

Preflight checklist

Describe your problem

I want to use dependency management with my Docker Compose setup, but I have to add the health check clause myself in the compose file, or extend the base Kratos image.

Describe your ideal solution

I would like the health check to be included in the docker image so that I don't have to add it manually.

This line can be added to the bottom of the docker files:

HEALTHCHECK --interval=10s --timeout=10s --start-period=10s --retries=3 CMD curl -m 5 --silent --fail --request GET http://localhost:4433/health/ready

Workarounds or alternatives

  • Extend the Kratos base image
  • Add the health check clause to the compose file

Version

0.10.0

Additional Context

No response

halvardssm avatar Jun 14 '22 12:06 halvardssm