External access to Node.JS app, within Docker container

i have a Node app running within a Docker container, hosted on Elastic Beanstalk (single instance). The docker has port 3000 exposed to access the app within the docker, and I can ‘curl 172.17.0.32:3000/test’ from the host which returns the expected response.

The problem I have is accessing this port externally using the elastic beanstalk url. i.e

  • Where does Elixir/erlang fit into the microservices approach? [closed]
  • Dokku multi-process (container) with Dockerfile project
  • Docker compose - build order, database before the app
  • lxc-start: Invalid argument - failed to clone
  • Mesos, Docker and GRE Tunneling
  • How to give docker container write/chmod permissions on mapped volume?
  • http://XXXXXX-env.elasticbeanstalk.com:3000/test

    This will time out.. can anyone recommend how to gain access to this port externally?

    thanks

  • Docker vs. Rocket in development
  • using a docker container to build another docker image
  • Extra characters appearing in Flask JavaScript files
  • Kubernetes Autoscaling Containers
  • Do ruby gi lmitations apply to docker containers
  • Ansible and restarting a docker service
  • One Solution collect form web for “External access to Node.JS app, within Docker container”

    Check this for reference
    http://victorlin.me/posts/2014/11/26/running-docker-with-aws-elastic-beanstalk

    see what your docker ps command returns.

    The ip you have shared looks like private ip address of the docker service used for internal network. You have to enable a bridge between your host and docker container by supplying -p 3000:3000 to the run command and finally enable the app in your elastic console.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.