title: Deploying a cluster (i.e. MongoDb / ElasticSearch) with Docker and linking to Java Application
body: <p>I need to deploy a Java microservice which interacts with an high-available back-end, such as ElasticSearch  or Mongodb. </p>
  
  <ul>
  <li>What is the idiomatic way to deploy a cluster of an high-available backend such as ElasticSearch or MongoDb and then pass the information to a dockerized microservice?</li>
  <li>Port and container links seems to tie the application to be always deployed with docker, is that a significant drawback? </li>
  <li>Is there an idiomatic way to retrieve the ip of the machines and pass them to the container running the microservice?</li>
  </ul>