-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
173 lines (166 loc) · 4.59 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
version: '3.6'
services:
elasticsearch:
build:
context: ./elasticsearch
args:
VERSION_EFK: ${VERSION_EFK}
command: /usr/share/elasticsearch/custom-entrypoint.sh
container_name: elasticsearch-master
environment:
- ${ES_JAVA_OPTS:-/dev/null}
- KEY_PASSPHRASE=${KEY_PASSPHRASE}
healthcheck:
test: curl --cacert $CERTS_DIR/ca.crt -s https://elasticsearch:9200 >/dev/null; if [[ $$? == 52 ]]; then echo 0; else echo 1; fi
interval: 30s
timeout: 10s
retries: 5
hostname: elasticsearch
networks:
- efk
ports:
- "9200:9200"
- "9300:9300"
ulimits:
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
volumes:
- certs:$CERTS_DIR
- elasticsearch_master:/usr/share/elasticsearch/data
- ./elasticsearch/entrypoint.sh:/usr/share/elasticsearch/custom-entrypoint.sh
- ./elasticsearch/config/master/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/config/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
elasticsearch-hot:
build:
context: ./elasticsearch
args:
VERSION_EFK: ${VERSION_EFK}
command: /usr/share/elasticsearch/custom-entrypoint.sh
container_name: elasticsearch-hot
environment:
- ${ES_JAVA_OPTS:-/dev/null}
- KEY_PASSPHRASE=${KEY_PASSPHRASE}
hostname: elasticsearch-hot
networks:
- efk
ulimits:
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
volumes:
- certs:$CERTS_DIR
- elasticsearch_hot:/usr/share/elasticsearch/data
- ./elasticsearch/entrypoint.sh:/usr/share/elasticsearch/custom-entrypoint.sh
- ./elasticsearch/config/hot/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/config/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
elasticsearch-warm:
build:
context: ./elasticsearch
args:
VERSION_EFK: ${VERSION_EFK}
command: /usr/share/elasticsearch/custom-entrypoint.sh
container_name: elasticsearch-warm
environment:
- ${ES_JAVA_OPTS:-/dev/null}
- KEY_PASSPHRASE=${KEY_PASSPHRASE}
hostname: elasticsearch-warm
networks:
- efk
ulimits:
nofile:
soft: 65536
hard: 65536
memlock:
soft: -1
hard: -1
volumes:
- certs:$CERTS_DIR
- elasticsearch_warm:/usr/share/elasticsearch/data
- ./elasticsearch/entrypoint.sh:/usr/share/elasticsearch/custom-entrypoint.sh
- ./elasticsearch/config/warm/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./elasticsearch/config/readonlyrest.yml:/usr/share/elasticsearch/config/readonlyrest.yml
# fluentd:
# build:
# context: ./fluentd
# args:
# VERSION_FLUENTD: $VERSION_FLUENTD
# container_name: fluentd
# depends_on:
# - elasticsearch
#depends_on: {"es01.telemetry.internal": {"condition": "service_healthy"}}
# env_file:
# - ./fluentd/fluentd.properties
# hostname: fluentd
# networks:
# - efk
# ports:
# - "5140:5140"
# - "5140:5140/udp"
# - "24223:24223"
# - "24223:24223/udp"
# - "24224:24224"
# - "24224:24224/udp"
# - "24231:24231"
# - "24231:24231/udp"
# volumes:
# - ./fluentd/config:/fluentd/etc
# - ./fluentd/certs:/fluentd/certs
#
kibana:
build:
context: ./kibana
args:
VERSION_EFK: ${VERSION_EFK}
container_name: kibana
depends_on:
- elasticsearch
environment:
ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD}
SERVER_SSL_KEYPASSPHRASE: ${KEY_PASSPHRASE}
hostname: kibana
networks:
- efk
ports:
- 5601:5601
volumes:
- certs:/usr/share/kibana/config/certificates
- ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
# elastichq:
# build:
# context: ./elasticHQ
# args:
# VERSION_ELASTICHQ: ${VERSION_ELASTICHQ}
# container_name: elastichq
# depends_on:
# - elasticsearch
# environment:
# HQ_DEFAULT_URL: https://elasticsearch:9200
# HQ_ENABLE_SSL: "True"
# HQ_CA_CERTS: /usr/share/elastichq/ca/ca.crt
# HQ_VERIFY_CERTS: "False"
# hostname: elastichq
# networks:
# - efk
# ports:
# - 5000:5000
# volumes:
# - certs:/usr/share/elastichq
networks:
efk:
driver: bridge
volumes:
certs:
driver: local
elasticsearch_hot:
driver: local
elasticsearch_master:
driver: local
elasticsearch_warm:
driver: local