# Installing Elasticsearch cluster in docker environment

**URL:** <https://discuss.elastic.co/t/installing-elasticsearch-cluster-in-docker-environment/272381>\
**Category:** Elasticsearch\
**Created:** [May 7, 2021, 7:43am UTC](https://discuss.elastic.co/t/installing-elasticsearch-cluster-in-docker-environment/272381 "2021-05-07T07:43:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)\
**Post date:** [May 7, 2021, 7:43am UTC](https://discuss.elastic.co/t/installing-elasticsearch-cluster-in-docker-environment/272381/1 "2021-05-07T07:43:25Z")

</div>

Would like to know the details related to installing the elasticsearch cluster in docker environment.  
Considering 3 VMs and having elasticsearch master and data nodes on each of these servers as containers, and also possible to have two data nodes on same server a different containers.  
Primarily looking for docker compose file with the approach to setup this cluster considering more than one VM. Have gone through the url: [Running the Elastic Stack on Docker | Getting Started [7.12] | Elastic](https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html)

---

<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:** [June 4, 2021, 7:43am UTC](https://discuss.elastic.co/t/installing-elasticsearch-cluster-in-docker-environment/272381/2 "2021-06-04T07:43:35Z")

</div>

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