title: How to wait until dependent services like elasticsearch are available for my service in docker-compose
body: <p>How to wait until dependent services are available in docker-compose</p>
  <p>Elasticsearch runs on a different machine and if my application is started via docker-compose it fails to start. But how do I wait, until the elasticsearch instance is available and running on a different machine so that the application can start</p>