-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
77 lines (70 loc) · 2.51 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: "3.7"
services:
elasticsearch1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
container_name: elasticsearch1
environment:
- cluster.name=docker-cluster
- node.name=elasticsearch1
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.monitoring.collection.enabled=true
- xpack.monitoring.exporters.remote.type=http
- xpack.monitoring.exporters.remote.host=monitor
- discovery.seed_hosts=elasticsearch1,elasticsearch2,elasticsearch3
- cluster.initial_master_nodes=elasticsearch1,elasticsearch2,elasticsearch3
ports:
- "19200:9200"
elasticsearch2:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
container_name: elasticsearch2
environment:
- cluster.name=docker-cluster
- node.name=elasticsearch2
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.monitoring.collection.enabled=true
- xpack.monitoring.exporters.remote.type=http
- xpack.monitoring.exporters.remote.host=monitor
- discovery.seed_hosts=elasticsearch1,elasticsearch2,elasticsearch3
- cluster.initial_master_nodes=elasticsearch1,elasticsearch2,elasticsearch3
ports:
- "29200:9200"
elasticsearch3:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
container_name: elasticsearch3
environment:
- cluster.name=docker-cluster
- node.name=elasticsearch3
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.monitoring.collection.enabled=true
- xpack.monitoring.exporters.remote.type=http
- xpack.monitoring.exporters.remote.host=monitor
- discovery.seed_hosts=elasticsearch1,elasticsearch2,elasticsearch3
- cluster.initial_master_nodes=elasticsearch1,elasticsearch2,elasticsearch3
ports:
- "39200:9200"
monitor:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
container_name: monitor
environment:
- cluster.name=docker-monitor-cluster
- node.name=monitor
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.monitoring.collection.enabled=false
- discovery.seed_hosts=monitor
- cluster.initial_master_nodes=monitor
ports:
- "9200:9200"
kibana-devtools:
image: docker.elastic.co/kibana/kibana:7.17.5
container_name: kibana-devtools
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch3:9200
ports:
- "15601:5601"
kibana-dashboard:
image: docker.elastic.co/kibana/kibana:7.17.5
container_name: kibana-dashboard
environment:
ELASTICSEARCH_HOSTS: http://monitor:9200
ports:
- "25601:5601"