title: Docker-compose container ports not working
body: <p>I'm running a container that's initiated by docker-container like so:</p>
  
  <pre><code>  puppetboard:
      build: ./images/puppetboard
      image: puppet/puppetboard
      ports:
        - 5000:5000
      links:
        - puppetdb:puppetdb
  </code></pre>
  
  <p>It successfully builds and when I run <code>docker ps</code> I can see:</p>
  
  <pre><code>0.0.0.0:5000-&gt;5000/tcp
  </code></pre>
  
  <p>I can even go into the container using <code>docker exec</code> and use <code>curl localhost:5000</code> which returns an html page.</p>
  
  <p>I double check that host machine can see port 5000 on 127.0.0.2 <em>(docker network)</em> with <code>nmap 127.0.0.2</code> and the port is available: <code>5000/tcp  open  upnp</code>.</p>
  
  <p>Yet when I go to <code>127.0.0.2:5000</code> in my browser on the host machine I get website not available. How can I debug this network issue?</p>
  
  <p>Result of <code>curl 127.0.0.2:5000</code> &amp; <code>curl 127.0.0.1:5000</code> is: <code>curl: (56) Recv failure: Connection reset by peer</code>.</p>