title: Connect two instances of docker-compose
body: <p>I have a dockerized application with a few services running using docker-compose. I'd like to connect this application with ElasticSearch/Logstash/Kibana (ELK) using another docker-compose application, <a href="https://github.com/deviantony/docker-elk" rel="noreferrer">docker-elk</a>. Both of them are running in the same docker machine in development. In production, that will probably not be the case.</p>
  
  <p>How can I configure my application's <code>docker-compose.yml</code> to link to the ELK stack?</p>