Multiple elasticsearch node with docker on differents Hosts

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.

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