project-pegaprox
project-pegaprox copied to clipboard
[Feature] Healthcheck for Docker deployments
Describe the feature
It would be great to get a healhcheck functionality for docker. I cannot build it manually because there is no curl or wget on the container.
Use Case
To monitor the status / realizing self-healing
Alternatives considered
no
How important is this for you?
Important
Checklist
- [ x] I have searched existing issues and discussions to make sure this hasn't been requested before
Hi there @jostrasser ,
please see:
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3
CMD python3 -c "import urllib.request; urllib.request.urlopen('https://localhost:5000/api/health', context=import('ssl')._create_unverified_context())" || exit 1
Regards, Marcus
Perfect, many thanks @mkellermann97 !