title: AngularJS and NodeJS app in Docker
body: <p>I have an angular and nodejs app.
  The API's (nodejs) is running on port 8888
  The Angular is running on port 8080</p>
  
  <p>Now the app is running in a docker container.
  The container is running by:</p>
  
  <pre><code>docker run -d -p 49160:8080 --name app localhost:5000/test/app
  </code></pre>
  
  <p>The problem is. Now I'm able to visiting the API's on localhost:49160 but I don't know how to access my angular. Which is running on another port</p>
  
  <p>Do I need 2 containers? In each tutorial I see it in the same container.</p>
  
  <p>EDIT: this is my dockerfile:</p>
  
  <pre><code>FROM node
  
  # Create app directory
  RUN mkdir -p /usr/src/app
  WORKDIR /usr/src/app
  
  RUN npm install -g bower
  RUN npm install -g gulp
  
  # Install app dependencies
  COPY . /usr/src/app/
  RUN bower install
  RUN npm install
  RUN gulp build
  
  EXPOSE 8080
  CMD [ "node", "server.js" ]
  </code></pre>
  
  <p>My run command is: </p>
  
  <pre><code>docker run -d -p 49160:8080 -p 8888:8888 --name app localhost:5000/test/app
  </code></pre>
  
  <p>My angular is running on port 8080 and nodejs on 8888.</p>