title: Health check on container port and host port in ECS + ALB
body: <p>I have a problem with my deployment in ECS.</p>
  
  <p>I try to deploy 4 instances of 2 docker images on 2 EC2 instances with an ALB in front.</p>
  
  <p>So in my tasks definitions, I use the dynamic port mapping (2 Nginx on container port 80).</p>
  
  <p>This creates a trouble in the Health check of my target group.
  In fact, for each instance, I have a health check on the dynamics port (that is ok) and on the container port (80).</p>
  
  <p>So the dynamic port says, it's ok. And the container port, logically says unhealthy ...
  (Like in my screenshot)
  <a href="https://i.stack.imgur.com/SNOEF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SNOEF.png" alt="enter image description here"></a></p>
  
  <p>So can you help me ton find why I have that type of error (this error make my server terminated each 5 minutes....)</p>
  
  <p>Thanks in advance for your help :D</p>