title: docker-compose up not forwarding port
body: <p>I have the following files.  When I run docker-compose up -d and exec into the docker container, I am able to run <a href="http://127.0.0.1:5000" rel="nofollow noreferrer">http://127.0.0.1:5000</a> and get back results.  From the host I get back:</p>
  
  <pre><code>user@ubuntu:~/projects/grip/glm-plotter$ curl -v http://localhost:5000
  * Rebuilt URL to: http://localhost:5000/
  *   Trying ::1...
  * TCP_NODELAY set
  * Connected to localhost (::1) port 5000 (#0)
  &gt; GET / HTTP/1.1
  &gt; Host: localhost:5000
  &gt; User-Agent: curl/7.58.0
  &gt; Accept: */*
  &gt; 
  * Empty reply from server
  * Connection #0 to host localhost left intact
  curl: (52) Empty reply from server
  </code></pre>
  
  <p>If I run the docker-compose command without a -d, it starts up but from a separate terminal I also get back empty results.</p>
  
  <p>docker ps (When running without -d)</p>
  
  <pre><code>CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
  237b0a7f8710        glm-plotter_web     "python3 glm-plotter…"   16 minutes ago      Up 24 seconds       0.0.0.0:5000-&gt;5000/tcp   glm-plotter_web_1
  </code></pre>
  
  <p>I'm not sure if the process should be listed under "docker-proxy":</p>
  
  <pre><code>user@ubuntu:~$ sudo netstat -tulpn | grep 5000 
  tcp6       0      0 :::5000                 :::*                    `LISTEN      13785/docker-proxy`  
  </code></pre>
  
  <p>Dockerfile</p>
  
  <pre><code>FROM library/python:3.6-stretch
  RUN apt-get update &amp;&amp; apt-get install -y python3
  RUN apt-get install -y python3-pip
  RUN apt-get install -y build-essential
  
  COPY requirements.txt /
  RUN pip3 install --trusted-host pypi.org -r /requirements.txt
  RUN pip3 install --upgrade numpy
  ADD ./glm-plotter /code
  WORKDIR /code
  RUN ls .
  CMD ["python3", "glm-plotter.py"]
  </code></pre>
  
  <p>docker-compose.yml</p>
  
  <pre><code>version: "3"
  services:
    web:
      volumes:
        - ~/.aws:/root/.aws
      build: .
      ports:
        - "5000:5000"
  </code></pre>