docker_auth
docker_auth copied to clipboard
Healthcheck
Hi. Maybe it would be good idea to add healthcheck (https://docs.docker.com/engine/reference/builder/#healthcheck)? So that if something happens, container can be automatically restarted?
Maybe something like:
[[ "$(curl -o /dev/null -w '%{http_code}' https://127.0.0.1:5001/auth)" == 401 ]] && exit 0 || exit 1
(curl would have to be installed in the image) ?