-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
180 lines (171 loc) · 4.54 KB
/
docker-compose.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: '2.2'
services:
master-es:
build: elasticsearch/
container_name: master-es
hostname: master-es
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- /DATA0:/DATA0/elasticsearch
- ./elasticsearch/elasticsearch-master.yml:/etc/elasticsearch/elasticsearch.yml
- ./elasticsearch/jvm.options-master:/etc/elasticsearch/jvm.options
- config-es-master:/etc/elasticsearch
ports:
- 9200:9200
- 9300:9300
networks:
elk:
ipv4_address: 172.29.0.2
node-1-es:
build: elasticsearch/
container_name: node-1-es
hostname: node-1-es
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- /DATA1:/DATA1/elasticsearch
- /DATA0/snapshots:/DATA0/elasticsearch/snapshots
- ./elasticsearch/elasticsearch-node-1.yml:/etc/elasticsearch/elasticsearch.yml
- ./elasticsearch/jvm.options-node:/etc/elasticsearch/jvm.options
- config-es-node-1:/etc/elasticsearch
networks:
elk:
ipv4_address: 172.29.0.3
node-2-es:
build: elasticsearch/
container_name: node-2-es
hostname: node-2-es
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- /DATA2:/DATA2/elasticsearch
- /DATA0/snapshots:/DATA0/elasticsearch/snapshots
- ./elasticsearch/elasticsearch-node-2.yml:/etc/elasticsearch/elasticsearch.yml
- ./elasticsearch/jvm.options-node:/etc/elasticsearch/jvm.options
- config-es-node-2:/etc/elasticsearch
networks:
elk:
ipv4_address: 172.29.0.4
kibana-es:
build: kibana/
container_name: kibana
hostname: kibana
volumes:
- ./kibana/kibana.yml:/etc/kibana/kibana.yml
- config-kibana:/etc/kibana
ports:
- "5601:5601"
networks:
elk:
ipv4_address: 172.29.0.5
depends_on:
- master-es
logstash-es:
build: logstash/
container_name: logstash
hostname: logstash
volumes:
- ./logstash/config/logstash.yml:/etc/logstash/logstash.yml
- ./logstash/config/pipelines.yml:/etc/logstash/pipelines.yml
- ./logstash/config/jvm.options:/etc/logstash/jvm.options
- ./logstash/conf.d:/etc/logstash/conf.d
- ./logstash/conf.d_inactiv:/etc/logstash/conf.d_inactiv
- ./logstash/patterns:/etc/logstash/patterns
- ./logstash/scripts:/etc/logstash/scripts
- ./logstash/files:/etc/logstash/files
- ./logstash/jars/postgresql-42.2.16.jar:/usr/share/logstash/logstash-core/lib/jars/postgresql-42.2.16.jar
- /DATA1/logstash:/DATA1/logstash
- config-logstash:/etc/logstash
ports:
- "5000:5000"
- "9600:9600"
networks:
elk:
ipv4_address: 172.29.0.6
depends_on:
- master-es
# logstash-prod-es:
# build: logstash-prod/
# container_name: logstash-prod
# hostname: logstash-prod
# volumes:
# - ./logstash-prod/config/logstash.yml:/etc/logstash/logstash.yml
# - ./logstash-prod/config/pipelinesyml:/etc/logstash/pipelines.yml
# - ./logstash-prod/config/jvm.options:/etc/logstash/jvm.options
# - ./logstash-prod/conf.d:/etc/logstash/conf.d
# - ./logstash-prod/patterns:/etc/logstash/patterns
# - /DATA2/logstash:/DATA2/logstash
# - config-logstash-prod:/etc/logstash
# ports:
# - "5002:5002"
# - "9601:9601"
# networks:
# elk:
# ipv4_address: 172.29.0.9
# depends_on:
# - master-es
cerebro-es:
build: cerebro/
container_name: cerebro
hostname: cerebro
environment:
CEREBRO_PORT: 9091
volumes:
- config-cerebro:/opt/cerebro/conf
- ./cerebro/application.conf/:/opt/cerebro/conf/application.conf
ports:
- "9091:9091"
networks:
elk:
ipv4_address: 172.29.0.7
depends_on:
- master-es
curator-es:
build: curator/
container_name: curator
volumes:
- ./curator/config:/config
- ./curator/config/crontab.txt:/etc/crontabs/root
networks:
elk:
ipv4_address: 172.29.0.8
depends_on:
- master-es
volumes:
config-es-master:
driver: local
config-es-node-1:
driver: local
config-es-node-2:
driver: local
config-kibana:
driver: local
config-logstash:
driver: local
# config-logstash-prod:
# driver: local
config-cerebro:
driver: local
networks:
elk:
driver: bridge
ipam:
config:
- subnet: 172.29.0.0/16
gateway: 172.29.0.1