title: docker-compose make requests between containers
body: <p>I'm a bit new to docker-compose, so I'm not so sure what am I looking for even.</p>
  
  <p>I created two images, and I'm running them using docker-compose, on a local environment these two services communicate via HTTP requests (both are running on localhost, one service on port 3000, one service on port 8000)</p>
  
  <p>When I moved those two services to docker (two separated containers and images) I can't seem to make them communicate.</p>
  
  <p>this is my docker-compose file:</p>
  
  <pre><code>version: '3'
  
  services:
    service1:
      image: services/services1
      ports:
        - 3000:3000
      links:
        - "service2"
      depends_on:
        - service2
  
    service2:
      image: services/service2
      ports:
        - 8000:8000
  </code></pre>
  
  <p>When I'm making http requests directly to each of the services I get a good response, but when I'm making a request to service1 and in services1 I have another request to service 2, I can't get a response at all</p>
  
  <pre><code>Error: connect ECONNREFUSED 127.0.0.1:8000
  </code></pre>
  
  <p>Both services are running on 0.0.0.0</p>