kratos
kratos copied to clipboard
Docker Image Healthcheck
Preflight checklist
- [X] I could not find a solution in the existing issues, docs, nor discussions.
- [X] I agree to follow this project's Code of Conduct.
- [X] I have read and am following this repository's Contribution Guidelines.
- [ ] This issue affects my Ory Cloud project.
- [ ] I have joined the Ory Community Slack.
- [ ] I am signed up to the Ory Security Patch Newsletter.
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