# Multiple elasticsearch node with docker on differents Hosts

**URL:** <https://discuss.elastic.co/t/multiple-elasticsearch-node-with-docker-on-differents-hosts/200686>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [September 23, 2019, 11:57am UTC](https://discuss.elastic.co/t/multiple-elasticsearch-node-with-docker-on-differents-hosts/200686 "2019-09-23T11:57:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafalitox2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafalitox2/32/53882_2.png) [@rafalitox2](https://discuss.elastic.co/u/rafalitox2)\
**Post date:** [September 23, 2019, 11:57am UTC](https://discuss.elastic.co/t/multiple-elasticsearch-node-with-docker-on-differents-hosts/200686/1 "2019-09-23T11:57:39Z")

</div>

Hi, i just want to run different elasticsearch nodes in 3/4 hosts, all the hosts have a docker-compose like:

```
version: '3'
services:
  elk:
    image: sebp/elk:730
    ports:
      - 5601:5601
      - 9200:9200
      - 9300:9300
      - 5000:5000
      - 5044:5044
      - 3333:3333
    environment:
      - LOGSTASH_START=0
      - KIBANA_START=0

```

And a different elasticsearch.yml adding:

```
xpack.security.enabled: true
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["host1:9300",...]
cluster.initial_master_nodes: ["elk1", "elk2"...]

```

with the cluster.name and node.name changed.

For me it was impossible to connect the nodes, the host1 start normally, but the host2,... says that there are no master node eligible on the Host1 IP, i can give more info and sorry, i'm new with elk.

---

<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:** [October 21, 2019, 11:57am UTC](https://discuss.elastic.co/t/multiple-elasticsearch-node-with-docker-on-differents-hosts/200686/2 "2019-10-21T11:57:42Z")

</div>

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