Closed Harrolee closed 7 months ago
The health check commands run on the container. Therefore you must include the commands in the container image.
The health check connects to the application through the container's loopback interface at localhost or 127.0.0.1. An exit code of 0 indicates success, and non-zero exit code indicates failure.
The result is that the instance is continuously shutdown and restarted.
Logs from the ECS task suggest that the container does not receive a healthcheck at all