[IMPLEMENTED] Docker healthcheck

Request is to add curl or a basic health checker (https://blog.sixeyed.com/docker-healthchecks-why-not-to-use-curl-or-iwr/) to the docker image so that health check can be used.

Thanks!

Squidex has several health endpoints: https://github.com/Squidex/squidex/blob/7e768a2443ecbedf9ff422bc6ff88e27ae8e8e4f/src/Squidex/Config/Web/WebExtensions.cs#L72

Is this what you are looking for?

Well, the application has a readiness endpoint which is perfect for doing a healthcheck :slight_smile:

But the docker image needs a command that is run inside the container to call the healthcheck endpoint (e.g. ‘curl’)

I’ll do a PR here when I get a minute.

I am not sure if this should be part of the default image, because environment like kubernetes have their own health system.

The only thing that would need to be added is the option for docker/swarm – by adding curl support or something like that – kubes would just not use it and I wouldn’t recommend it as a default on the dockerfile.

Oh, I see. This should be doable. Can you make a PR for that? :wink:

It should be one liner in the Dockerfile.

Absolutely – will do today/tomorrow.

1 Like

Have you had success?

I haven’t had a chance to yet obviously. :slight_smile: Will try and get to that today – would like a healthcheck now that we’re relying more and more on Squidex for production.

Finally: https://github.com/Squidex/squidex/pull/351

Awesome … merged!

Thank you very much

1 Like