version: '3'
services:
es01:
image: hub.redblue-ai.com/elasticsearch:7.5.2
hostname: es01
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- http.port=9200
- transport.tcp.port=9300
- network.host=es01
- network.publish_host=es01.redblue-ai.com
- discovery.seed_hosts=es02.redblue-ai.com:9301,es03.redblue-ai.com:9302
- cluster.initial_master_nodes=es01.redblue-ai.com:9200,es02.redblue-ai.com:9201,es03.redblue-ai.com:9202
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es01_data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
es02:
image: hub.redblue-ai.com/elasticsearch:7.5.2
hostname: es02
environment:
- node.name=es02
- cluster.name=es-docker-cluster
- http.port=9201
- transport.tcp.port=9301
- network.host=es02
- network.publish_host=es02.redblue-ai.com
- discovery.seed_hosts=es01.redblue-ai.com:9300,es03.redblue-ai.com:9302
- cluster.initial_master_nodes=es01.redblue-ai.com:9200,es02.redblue-ai.com:9201,es03.redblue-ai.com:9202
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es02_data:/usr/share/elasticsearch/data
ports:
- 9201:9201
- 9301:9301
es03:
image: hub.redblue-ai.com/elasticsearch:7.5.2
hostname: es03
environment:
- node.name=es03
- cluster.name=es-docker-cluster
- http.port=9202
- transport.tcp.port=9302
- network.host=es03
- network.publish_host=es03.redblue-ai.com
- discovery.seed_hosts=es01.redblue-ai.com:9300,es02.redblue-ai.com:9301
- cluster.initial_master_nodes=es01.redblue-ai.com:9200,es02.redblue-ai.com:9201,es03.redblue-ai.com:9202
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es03_data:/usr/share/elasticsearch/data
ports:
- 9202:9202
- 9302:9302
kibana:
image: hub.redblue-ai.com/kibana:7.5.2
hostname: kibana
environment:
#I18N_LOCALE: "zh-CN"
SERVER_NAME: kibana
SERVER_HOST: "0.0.0.0"
SERVER_PORT: 5601
ELASTICSEARCH_HOSTS: http://es01:9200
XPACK_MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED: "true"
ports:
- "5601:5601"
volumes:
es01_data:
es02_data:
es03_data: