title: Accessing Api's from within container in EC2
body: <p>I'm new in AWS and EC2, I created a very simple hello world node.js application and dockerized it and I'm able to access the api route from within the container in my local machine, then I deployed the docker image to the docker hub and pulled that image from an EC2 instance and ran the image the docker logs shows that container is running fine.
  <a href="https://i.stack.imgur.com/210Eb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/210Eb.jpg" alt="enter image description here"></a></p>
  
  <p>Then from the EC2 instance information I get the </p>
  
  <pre><code>IPv4 Public IP xx.xxx.x.xxx
  </code></pre>
  
  <p>From the browser I try going to <code>http://xx.xxx.x.xxx:8080/</code>
  but it times out and can't be reached, I'm expecting to see the hello world.
  wonder if I'm missing any thing?</p>