Docker healthchecks
Whether a Docker container is healthy is not just about whether it’s running. A service could stop working properly without crashing. Docker can detect some of those kinds of invalid states when we define custom healthchecks. healthcheck in Docker Compose | Docker Docs HEALTHCHECK in Dockerfile | Docker Docs The way it works is you define a command for Docker to periodically run inside the container, and Docker uses that command’s exit code to determine whether the service is healthy....