Hi all !
I am working on a Docker image with Caddy, and I would like to add a Docker healthcheck to the image.
One would usually use a program such as
wget to check the server works correctly on port 80 for example. In my case, scratch is my base image (just a filesystem) so there is no wget.
Ideally, the Docker container would launch the normal Caddy server
caddy at start, and run
caddy healthcheck periodically. This second would check the already running Caddy instance is working normally. If a problem occurs, do
os.Exit(0). Is there any chance you could implement a simple healthcheck command? If not, would that be implementable as plugin (directions would be appreciated!) ?