I am trying to deploy an instance of Docker Gogs image to AWS.
The environment and application starts fine, but the only visible port is 80, while I have "EXPOSE 3000" in my Docker file.
I added the following Dockerrun.aws.json
to my git repo and deployed to AWS, but the port is still not visible.
{
"AWSEBDockerrunVersion": "1",
"Ports": [
{
"ContainerPort": "3000"
}
]
}
The container should expose port 3000. The container serves as the upstream for the nginx server running on the EC2 instance. Nginx server listens on port 80 and redirects traffic to the container listening 3000. Are you seeing this behavior? If not can you please share the output of docker ps on the instance?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With