-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose_hot-warm.yml
154 lines (146 loc) · 4.24 KB
/
docker-compose_hot-warm.yml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: '2.2'
services:
es-master-1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-master-1
container_name: es-master-1
volumes:
- ./elasticsearch/hot_warm/elasticsearch_master_1.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
networks:
- esnet
es-master-2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-master-2
container_name: es-master-2
volumes:
- ./elasticsearch/hot_warm/elasticsearch_master_2.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
networks:
- esnet
es-master-3:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-master-3
container_name: es-master-3
volumes:
- ./elasticsearch/hot_warm/elasticsearch_master_3.yml:/usr/share/elasticsearch/config/elasticsearch.yml
ports:
- 9200:9200
networks:
- esnet
es-hot-1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-hot-1
container_name: es-hot-1
volumes:
- ./elasticsearch/hot_warm/elasticsearch_hot_1.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-hot-1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
es-hot-2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-hot-2
container_name: es-hot-2
volumes:
- ./elasticsearch/hot_warm/elasticsearch_hot_2.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-hot-2:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
es-hot-3:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-hot-3
container_name: es-hot-3
volumes:
- ./elasticsearch/hot_warm/elasticsearch_hot_3.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-hot-3:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
es-warm-1:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-warm-1
container_name: es-warm-1
volumes:
- ./elasticsearch/hot_warm/elasticsearch_warm_1.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-warm-1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
es-warm-2:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-warm-2
container_name: es-warm-2
volumes:
- ./elasticsearch/hot_warm/elasticsearch_warm_2.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-warm-2:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
es-warm-3:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.2
hostname: es-warm-3
container_name: es-warm-3
volumes:
- ./elasticsearch/hot_warm/elasticsearch_warm_3.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- es-warm-3:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- esnet
logstash:
image: docker.elastic.co/logstash/logstash:6.4.2
hostname: logstash
container_name: logstash
volumes:
- ./logstash/logstash.yml:/usr/share/logstash/config/logstash.yml
- ./logstash/pipeline.yml:/usr/share/logstash/config/pipeline.yml
- ./logstash/conf.d/:/usr/share/logstash/config/conf.d/
ports:
- "9290:9290" #tcpin port
- "4560:4560" #log4j port
links:
- elasticsearch:elasticsearch
kibana:
image: docker.elastic.co/kibana/kibana:6.4.2
hostname: kibana
container_name: kibana
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
links:
- elasticsearch:elasticsearch
ports:
- "5601:5601" #kibana port
ml:
image: docker.elastic.co/ml/ml:6.4.2
hostname: ml
container_name: ml
volumes:
- ./elasticsearch/elastic_ml_1.yml:/usr/share/elasticsearch/config/elasticsearch.yml
links:
- elasticsearch:elasticsearch
ports:
- "5601:5601" #ml port
volumes:
es-hot-1:
driver: local
es-hot-2:
driver: local
es-hot-3:
driver: local
es-warm-1:
driver: local
es-warm-2:
driver: local
es-warm-3:
driver: local
networks:
esnet: