A simple project implementing a health check for testing purposes.
docker pull maxwo/healthcheck
docker run -p 8080:8080 maxwo/healthcheck
curl http://127.0.0.1:8080/healthcheck
curl -X PUT -H 'Content-type: application/json' -d 'true' http://127.0.0.1:8080/healthcheck
curl http://127.0.0.1:8080/health
It should return a 200 OK status when healthy, otherwise, 503.