project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Feature] Healthcheck for Docker deployments

Open jostrasser opened this issue 8 months ago • 2 comments

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

jostrasser avatar Mar 22 '26 06:03 jostrasser

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

mkellermann97 avatar Mar 22 '26 17:03 mkellermann97

Perfect, many thanks @mkellermann97 !

jostrasser avatar Mar 22 '26 18:03 jostrasser