title: Can't access to localhost:8080 with docker on windows 10
body: <p>When running my <code>docker-compose-development.yaml</code> on my computer, I can't connect to <code>http://localhost:8080</code>.</p>
  
  <p>Also, I can run <code>docker-compose -f docker-compose-development.yaml exec web curl http://localhost:8080</code> and I got a result. So it seems to not be a code problem. </p>
  
  <p>What I've already done:</p>
  
  <ul>
  <li>Connect directly on container IP with <code>$ docker inspect ...</code></li>
  <li>Try on another Windows 10 laptop (<strong>it works</strong>)</li>
  <li>Change <code>localhost</code> to <code>127.0.0.1</code> or <code>0.0.0.0</code></li>
  <li>Try another port than <code>8080</code></li>
  </ul>
  
  <p>This is my <code>$ docker version</code> :</p>
  
  <pre><code>Client:
   Version:      17.11.0-ce
   API version:  1.34
   Go version:   go1.8.4
   Git commit:   1caf76c
   Built:        Mon Nov 20 18:30:11 2017
   OS/Arch:      windows/amd64
  
  Server:
   Version:      17.11.0-ce
   API version:  1.34 (minimum version 1.12)
   Go version:   go1.8.5
   Git commit:   1caf76c
   Built:        Mon Nov 20 18:39:28 2017
   OS/Arch:      linux/amd64
   Experimental: true
  </code></pre>
  
  <p>This is my <code>Dockerfile</code>: </p>
  
  <pre><code>FROM node:9.1-alpine
  
  RUN npm install -g nodemon
  
  
  WORKDIR /opt/webserver/
  COPY . /opt/webserver
  RUN npm install
  
  CMD  ["npm","run","start"]
  EXPOSE 8080
  
  RUN rm -rf /tmp/* /var/tmp/*
  </code></pre>
  
  <p>This is my <code>docker-compose-development.yaml</code>: </p>
  
  <pre><code>version: "3"
  
  services:
    web:
      image: registry.gitlab.com/soundtrack/webapp
      ports:
        - "8080:8080"
      links:
        - database
      volumes:
        - ".:/opt/webserver:rw"
    database:
      image: mongo:3.4.10
  </code></pre>
  
  <p><code>ps</code> command from <code>docker-compose</code>:</p>
  
  <pre><code>$ docker-compose -f .\docker-compose-development.yaml ps
        Name                    Command             State           Ports
  --------------------------------------------------------------------------------
  webapp_database_1   docker-entrypoint.sh mongod   Up      27017/tcp
  webapp_web_1        npm run start                 Up      0.0.0.0:8080-&gt;8080/tcp
  </code></pre>