title: Docker compose access to port on host
body: <p>I'm running another docker-compose exposing Logstash on port 5044 (using <a href="https://github.com/deviantony/docker-elk" rel="nofollow noreferrer">docker-elk</a>). I'm able to make requests to the service on localhost:5044 on my host, so the port is exposed correctly.</p>
  
  <p>I'm then running another docker-compose (Filebeat) but from there I cannot connect to "localhost:5044". Here is the docker compose file:</p>
  
  <pre><code>version: '2'
  
  services:
  
    filebeat:
      build: filebeat/
      networks:
        - elk
  
  networks:
  
    elk:
      driver: bridge
  </code></pre>
  
  <p>Any cluye why the localhost:5044 is not accessable in this docker compose?</p>