Docker - include a HEALTHCHECK instruction
Docker best practice:
Use
HEALTHCHECK
to verify that the process running inside the container is healthy.For example, call the health check endpoint of your web app:
HEALTHCHECK CMD curl --fail http://localhost:8000 || exit 1