I created an AWS Elastic Beanstalk environment with a Load Balancer configured on ports 80
and 8080
, I also turned off proxy (was Nginx initially). I created simple Node.js app and Dockerfile for it. Also I added file Dockerrun.aws.json
with content:
{
"AWSEBDockerrunVersion": "1",
"Ports": [
{
"HostPort": "8080",
"ContainerPort": "8080"
}
]
}
I have my own image, not published anywhere so I didn't mentioned the Image
section. After deployment I see one Docker container running with a single port 8080
opened (as expected). But the Elastic Beanstalk system doesn't forward this port to internal IP address.
What am I doing wrong and how to instruct Elastic Beanstalk to forward port from container to host (I know how to do it manually but it is not the case for Elastic Beanstalk) ?