# Multi-node cluster across multiple virtual machines

**URL:** <https://discuss.elastic.co/t/multi-node-cluster-across-multiple-virtual-machines/341951>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 30, 2023, 7:53am UTC](https://discuss.elastic.co/t/multi-node-cluster-across-multiple-virtual-machines/341951 "2023-08-30T07:53:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cody](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cody/32/121875_2.png) [@Cody](https://discuss.elastic.co/u/Cody)\
**Post date:** [August 30, 2023, 7:53am UTC](https://discuss.elastic.co/t/multi-node-cluster-across-multiple-virtual-machines/341951/1 "2023-08-30T07:53:09Z")

</div>

Hello, i am trying to run a 3 node cluster for Elasticsearch and kibana across 3 Virtual machines, each VM running 1 node each. I refer to the documentation " Start a multi-node cluster with Docker Compose" at [https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) which gives a docker compose guide on how to create 3 nodes on a single machine and i had successfully done it.

May i have advice on how to proceed to make the nodes to run on separate machines? Do i have to separate the compose file services and run them one after another, e.g. VM1: setup, es01, kibana | VM2: es02 |VM3: es03. In this case how do i share the certificates across the VMs?

---

<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:** [September 27, 2023, 7:53am UTC](https://discuss.elastic.co/t/multi-node-cluster-across-multiple-virtual-machines/341951/2 "2023-09-27T07:53:42Z")

</div>

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