# Multiple Node Cluster through Docker

**URL:** <https://discuss.elastic.co/t/multiple-node-cluster-through-docker/135050>\
**Category:** Elasticsearch\
**Created:** [June 7, 2018, 7:41pm UTC](https://discuss.elastic.co/t/multiple-node-cluster-through-docker/135050 "2018-06-07T19:41:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavw](https://avatars.discourse-cdn.com/v4/letter/p/94ad74/32.png) [@pavw](https://discuss.elastic.co/u/pavw)\
**Post date:** [June 7, 2018, 7:41pm UTC](https://discuss.elastic.co/t/multiple-node-cluster-through-docker/135050/1 "2018-06-07T19:41:40Z")

</div>

I want an ES cluster to run on multiple VMs using docker-compose and I'm not sure if there's anything special that I need to do with the docker-compose.yml file so that this is set up correctly? I know that I need to add the following to the elasticsearch.yml but I'm not sure what to do on the docker-compose side. I think I will just need to pass the modified elasticsearch.yml throught he docker-compose file but I am not sure.

```auto
discovery.zen.ping.multicast.enabled: true
discovery.zen.ping.unicast.hosts: ["{vm1_ip_addr}", "{vm2_ip_addr}"]

```

Where can I find out more about this? Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2018, 7:41pm UTC](https://discuss.elastic.co/t/multiple-node-cluster-through-docker/135050/2 "2018-07-05T19:41:42Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
