title: Docker exposed port unreachable
body: <p>I am running Node JS application on docker container. It is 100% working because if I run it without docker it works.</p>
  
  <p>Problem is the exposed port 3002 doesn't work in browser. Nmap shows this port is available and opened but it doesn't work in browser.</p>
  
  <p>I have the second app working on exposed port 3001 also through docker. This one does work. What could be the problem?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Dockerfile:</p>
  
  <pre><code># create a file named Dockerfile
  FROM node:7.4.0-alpine
  
  RUN mkdir /app
  WORKDIR /app
  
  COPY package.json /app
  RUN npm install
  RUN npm install -g lab
  
  COPY . /app
  
  EXPOSE 3002
  
  CMD ["npm", "start"]
  </code></pre>
  
  <p>docker-compose.yml file</p>
  
  <pre><code>version: "2"
  services:
    soho-api:
      build: .
      image: messenger-bot:0.1
      container_name: messenger-bot
      environment:
        NODE_ENV: development
      ports:
        - "3002:3002"
      volumes:
        - ./src:/app/src
  </code></pre>
  
  <p>deploy.sh file:</p>
  
  <pre><code>#!/bin/sh
  sudo docker stop messenger-bot
  sudo docker rm messenger-bot
  sudo docker rmi messenger-bot:0.1
  sudo docker-compose build
  sudo docker-compose up -d
  </code></pre>
  
  <p>I run from terminal: <code>bash deploy.sh</code></p>