Healthcheck fails due to targeting the incorrect service port
Summary
When testing the container isolated from orchestration (k8s), the healthcheck fails due to generically targeting http
(port 80) as there is no designation for port in the target url.
Steps to reproduce
Run the container image on a host w/ applicable dependencies (DB) and it should restart around 3.5 - 4 minutes due to the current HEALTHCHECK
syntax.
What is the current bug behavior?
HEALTHCHECKS
fail and the container is restarted
What is the expected correct behavior?
Successful healthchecks and no restarts
Relevant logs and/or screenshots
curl: (7) Failed to connect to localhost port 80: Connection refused
Possible fixes
`HEALTHCHECK --timeout=5m --start-period=2m --retries=3 CMD curl http://localhost/auth:8080 || exit 1`
Defintion of Done
-
Bug has been identified and corrected within the container
/cc @ironbank-notifications/bug