2017-02-03 02:28:12 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
master:
|
2017-02-03 02:48:17 +00:00
|
|
|
image: itzg/elasticsearch
|
2017-02-03 02:28:12 +00:00
|
|
|
environment:
|
|
|
|
TYPE: MASTER
|
|
|
|
UNICAST_HOSTS: master
|
2017-02-03 02:48:17 +00:00
|
|
|
MIN_MASTERS: 1
|
2017-02-03 02:28:12 +00:00
|
|
|
deploy:
|
2017-02-03 02:48:17 +00:00
|
|
|
replicas: 1
|
2017-02-03 02:28:12 +00:00
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
|
|
|
data:
|
2017-02-03 02:48:17 +00:00
|
|
|
image: itzg/elasticsearch
|
2017-02-03 02:28:12 +00:00
|
|
|
environment:
|
|
|
|
TYPE: DATA
|
|
|
|
UNICAST_HOSTS: master
|
|
|
|
deploy:
|
|
|
|
replicas: 2
|
|
|
|
update_config:
|
|
|
|
parallelism: 1
|
2017-02-03 02:48:17 +00:00
|
|
|
delay: 60s
|
2017-02-03 02:28:12 +00:00
|
|
|
gateway:
|
2017-02-03 02:48:17 +00:00
|
|
|
image: itzg/elasticsearch
|
2017-02-03 02:28:12 +00:00
|
|
|
ports:
|
|
|
|
- "9200:9200"
|
|
|
|
- "9300:9300"
|
|
|
|
environment:
|
|
|
|
TYPE: GATEWAY
|
|
|
|
UNICAST_HOSTS: master
|
|
|
|
kibana:
|
|
|
|
image: kibana
|
|
|
|
ports:
|
|
|
|
- "5601:5601"
|
|
|
|
environment:
|
|
|
|
ELASTICSEARCH_URL: http://gateway:9200
|