-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
631 lines (617 loc) · 19.8 KB
/
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
networks:
elastic:
driver: overlay
attachable: true
# volumes:
# snapshot-nfs:
# driver_opts:
# type: "nfs"
# o: "addr=${NFS_SERVER_IP},nfsvers=4,nolock,hard,rw"
# device: ":${NFS_SERVER_DEVICE_PATH}"
services:
setup:
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
entrypoint: ["./setup_script.sh"]
user: "0"
deploy:
placement:
constraints:
- "node.labels.name==node1"
restart_policy:
condition: on-failure
delay: 10s
volumes:
- ./elasticsearch/certs:/usr/share/elasticsearch/config/certs
configs:
- source: elastic_initial_setup_script.sh
target: /usr/share/elasticsearch/setup_script.sh
mode: 0540
environment:
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
USERS_DEFAULT_PASSWORD: ${USERS_DEFAULT_PASSWORD}
LOGSTASH_WRITER_USER: ${LOGSTASH_WRITER_USER}
LOGSTASH_WRITER_PASSWORD: ${LOGSTASH_WRITER_PASSWORD}
LOGSTASH_SYSTEM_PASSWORD: ${LOGSTASH_SYSTEM_PASSWORD}
KIBANA_SYSTEM_PASSWORD: ${KIBANA_SYSTEM_PASSWORD}
APM_SYSTEM_PASSWORD: ${APM_SYSTEM_PASSWORD}
BEATS_SYSTEM_PASSWORD: ${BEATS_SYSTEM_PASSWORD}
REMOTE_MONITORING_USER_PASSWORD: ${REMOTE_MONITORING_USER_PASSWORD}
STACK_VERSION: ${STACK_VERSION}
healthcheck:
test: ["CMD-SHELL", "[ -f config/certs/es01/es01.crt ]"]
interval: 5s
timeout: 5s
retries: 10
networks:
elastic:
es01: &es_service
depends_on:
- setup
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
user: ${RUN_AS_USER}
deploy:
placement:
constraints:
- "node.labels.name==node1"
# resources:
# limits:
# memory: ${MEMORY_LIMIT}
# endpoint_mode: dnsrr
ports:
- target: 9200
published: 9200
mode: host
volumes:
- ${DATA_DIR}/elasticsearch/data:/app/elasticsearch/data
# - snapshot-nfs:/app/elasticsearch/snapshot
secrets:
- source: ca_crt
target: /usr/share/elasticsearch/config/certs/ca.crt
mode: 0640
uid: ${RUN_AS_USER}
- source: es01_crt
target: /usr/share/elasticsearch/config/certs/es.crt
mode: 0640
uid: ${RUN_AS_USER}
- source: es01_key
target: /usr/share/elasticsearch/config/certs/es.key
mode: 0640
uid: ${RUN_AS_USER}
configs:
- source: jvm_options
target: /usr/share/elasticsearch/config/jvm.options.d/heapsize.options
mode: 0440
env_file: es_env
environment:
- node.name=es01
- node.roles=${ELASTIC_MASTER_ROLES}
- cluster.name=${CLUSTER_NAME}
- cluster.initial_master_nodes=es01
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- JVM_HEAP_SIZE=${ELASTIC_JVM_HEAP_SIZE}
# mem_limit: ${MEM_LIMIT}
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
"CMD-SHELL",
"curl -s --cacert config/certs/ca.crt https://localhost:9200 | grep -q 'missing authentication credentials'",
]
interval: 10s
timeout: 5s
retries: 10
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "10"
networks:
elastic:
aliases:
- node1
es02:
<<: *es_service
depends_on:
- es01
deploy:
placement:
constraints:
- "node.labels.name==node2"
secrets:
- source: ca_crt
target: /usr/share/elasticsearch/config/certs/ca.crt
mode: 0640
- source: es02_crt
target: /usr/share/elasticsearch/config/certs/es.crt
mode: 0640
- source: es02_key
target: /usr/share/elasticsearch/config/certs/es.key
mode: 0640
env_file: es_env
environment:
- node.name=es02
- node.roles=${ELASTIC_MASTER_ROLES}
- cluster.name=${CLUSTER_NAME}
- cluster.initial_master_nodes=es01
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- JVM_HEAP_SIZE=${ELASTIC_JVM_HEAP_SIZE}
networks:
elastic:
aliases:
- node2
es03:
<<: *es_service
depends_on:
- es02
deploy:
placement:
constraints:
- "node.labels.name==node3"
secrets:
- source: ca_crt
target: /usr/share/elasticsearch/config/certs/ca.crt
mode: 0640
- source: es03_crt
target: /usr/share/elasticsearch/config/certs/es.crt
mode: 0640
- source: es03_key
target: /usr/share/elasticsearch/config/certs/es.key
mode: 0640
env_file: es_env
environment:
- node.name=es03
- node.roles=${ELASTIC_MASTER_ROLES}
- cluster.name=${CLUSTER_NAME}
- cluster.initial_master_nodes=es01
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- JVM_HEAP_SIZE=${ELASTIC_JVM_HEAP_SIZE}
networks:
elastic:
aliases:
- node3
kibana:
depends_on:
- es01
- es02
- es03
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/kibana/kibana:${STACK_VERSION}
user: ${RUN_AS_USER}
hostname: "kibana{{.Task.Slot}}"
deploy:
replicas: ${KIBANA_REPLICAS:-2}
placement:
max_replicas_per_node: 1
constraints:
- "node.role==manager"
update_config:
parallelism: 1
monitor: 60s
delay: 20s
volumes:
- ${DATA_DIR}/kibana/data:/usr/share/kibana/data
secrets:
- source: ca_crt
target: /usr/share/kibana/config/certs/ca.crt
mode: 0640
uid: ${RUN_AS_USER}
- source: kibana_crt
target: /usr/share/kibana/config/certs/kibana.crt
mode: 0640
uid: ${RUN_AS_USER}
- source: kibana_key
target: /usr/share/kibana/config/certs/kibana.key
mode: 0640
uid: ${RUN_AS_USER}
ports:
- ${KIBANA_PORT}:5601
environment:
SERVER_NAME: "kibana-{{.Node.Hostname}}"
ELASTICSEARCH_HOSTS: ${ELASTIC_HOSTS_LIST}
ELASTICSEARCH_USERNAME: kibana_system
ELASTICSEARCH_PASSWORD: ${KIBANA_SYSTEM_PASSWORD}
ELASTICSEARCH_SSL_CERTIFICATEAUTHORITIES: /usr/share/kibana/config/certs/ca.crt
# SSL
SERVER_SSL_ENABLED: "true"
SERVER_SSL_CERTIFICATE: /usr/share/kibana/config/certs/kibana.crt
SERVER_SSL_KEY: /usr/share/kibana/config/certs/kibana.key
XPACK_SECURITY_ENCRYPTIONKEY: ${KIBANA_SECURITY_ENCRYPTIONKEY}
XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: ${KIBANA_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY}
XPACK_SECURITY_SESSION_IDLETIMEOUT: 60m
# monitoring
# set to 'false' to disable self monitoring if already monitoring with metricbeat
MONITORING_KIBANA_COLLECTION_ENABLED: "false"
MONITORING_UI_CONTAINER_ELASTICSEARCH_ENABLED: "true"
MONITORING_UI_CONTAINER_LOGSTASH_ENABLED: "true"
SERVER_PUBLICBASEURL: "${KIBANA_SERVER_PUBLICBASEURL}"
# disable telemetry (elastic user data collection)
TELEMETRY_OPTIN: "false"
MAP_INCLUDEELASTICMAPSSERVICE: "false"
NEWSFEED_ENABLED: "false"
# ELASTIC_APM_ACTIVE: "true"
# ELASTIC_APM_SERVER_URL: https://apm-server:8200
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -I http://localhost:5601 | grep -qE 'HTTP/1.1 302 Found|200 OK' || curl --cacert config/certs/ca.crt -s -I https://localhost:5601 | grep -qE 'HTTP/1.1 302 Found|200 OK'",
]
interval: 10s
timeout: 5s
retries: 10
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
networks:
elastic:
aliases:
- "kibana{{.Task.Slot}}"
logstash:
depends_on:
- es01
- es02
- es03
- kibana
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/logstash/logstash:${LOGSTASH_VERSION}
user: ${RUN_AS_USER}
hostname: "{{.Node.Hostname}}"
deploy:
replicas: ${LOGSTASH_REPLICAS:-3}
placement:
max_replicas_per_node: 1
constraints:
- "node.role==manager"
update_config:
parallelism: 1
monitor: 60s
delay: 20s
ports:
- target: 9600
published: 9600
mode: host
- 7000:7000
- 7001:7001
- 8000:8000
- 8001:8001
- 8002:8002
- 8003:8003
- 8004:8004
- 8005:8005
secrets:
- source: ca_crt
target: /usr/share/logstash/config/certs/ca.crt
mode: 0644
configs:
- source: jvm_options
target: /usr/share/logstash/config/jvm.options.d/heap_size.options
mode: 0664
volumes:
- ./logstash/pipelines.yml:/usr/share/logstash/config/pipelines.yml
- ./logstash/conf.d.tmpl:/usr/share/logstash/config/conf.d
# fixes permission denied when running as a user other than 1000
- ./logstash/logstash.yml:/usr/share/logstash/config/logstash.yml:rw
- ${DATA_DIR}/logstash:/app/logstash
environment:
node.name: "{{.Node.Hostname}}"
path.data: /app/logstash
http.host: 0.0.0.0
xpack.monitoring.enabled: "true"
xpack.monitoring.elasticsearch.username: logstash_system
xpack.monitoring.elasticsearch.password: ${LOGSTASH_SYSTEM_PASSWORD}
xpack.monitoring.elasticsearch.ssl.certificate_authority: /usr/share/logstash/config/certs/ca.crt
xpack.monitoring.elasticsearch.hosts: "https://es01:9200 https://es02:9200 https://es03:9200"
LS_JAVA_OPTS: "-Xms${LOGSTASH_JVM_HEAP_SIZE} -Xmx${LOGSTASH_JVM_HEAP_SIZE}"
JVM_HEAP_SIZE: ${LOGSTASH_JVM_HEAPSIZE}
LOGSTASH_WRITER_USER: ${LOGSTASH_WRITER_USER}
LOGSTASH_WRITER_PASSWORD: ${LOGSTASH_WRITER_PASSWORD}
ELASTIC_HOSTS: "https://es01:9200 https://es02:9200 https://es03:9200"
healthcheck:
test: ["CMD-SHELL", "curl -s http://127.0.0.1:9600 | grep -q version"]
interval: 10s
timeout: 5s
retries: 10
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
networks:
- elastic
metricbeat-system:
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/beats/metricbeat:${STACK_VERSION}
user: ${RUN_AS_USER}
hostname: "{{.Node.Hostname}}"
deploy:
mode: global
update_config:
parallelism: 1
monitor: 30s
delay: 20s
cap_add:
- dac_read_search
# - sys_ptrace
# - net_admin
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:iro"
- "/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro"
- "/proc:/hostfs/proc:ro"
- "/:/hostfs:ro"
- ${DATA_DIR}/metricbeat/data:/usr/share/metricbeat/data
secrets:
- source: ca_crt
target: /usr/share/metricbeat/ca.crt
mode: 0444
configs:
- source: metricbeat-system.yml
target: /usr/share/metricbeat/metricbeat.yml
mode: 0444
environment:
ELASTIC_HOSTS_LIST: ${ELASTIC_HOSTS_LIST}
BEATS_SYSTEM_USERNAME: ${LOGSTASH_WRITER_USER}
BEATS_SYSTEM_PASSWORD: ${LOGSTASH_WRITER_PASSWORD}
OUTPUT_ELASTIC_ENABLED: 'true'
OUTPUT_LOGSTASH_ENABLED: 'false'
OUTPUT_CONSOLE_ENABLED: 'false'
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "1"
networks:
- elastic
metricbeat-monitoring:
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/beats/metricbeat:${STACK_VERSION}
user: ${RUN_AS_USER}
hostname: "{{.Node.Hostname}}"
deploy:
replicas: 2
placement:
max_replicas_per_node: 1
constraints:
- "node.role==manager"
update_config:
parallelism: 1
monitor: 60s
delay: 20s
secrets:
- source: ca_crt
target: /usr/share/metricbeat/ca.crt
mode: 0440
configs:
- source: metricbeat-monitoring.yml
target: /usr/share/metricbeat/metricbeat.yml
mode: 0444
environment:
ELASTIC_HOSTS_LIST: ${ELASTIC_HOSTS_LIST}
LOGSTASH_HOSTS_LIST: ${LOGSTASH_HOSTS_LIST}
ELASTIC_HOSTS_LIST_TO_MONITOR: '["https://es01:9200", "https://es02:9200", "https://es03:9200"]'
REMOTE_MONITORING_USER: remote_monitoring_user
REMOTE_MONITORING_USER_PASSWORD: ${REMOTE_MONITORING_USER_PASSWORD}
BEATS_SYSTEM_USERNAME: ${LOGSTASH_WRITER_USER}
BEATS_SYSTEM_PASSWORD: ${LOGSTASH_WRITER_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "1"
networks:
- elastic
filebeat:
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/beats/filebeat:${STACK_VERSION}
user: root
hostname: "{{.Node.Hostname}}"
deploy:
replicas: ${FILEBEAT_REPLICAS:-3}
placement:
max_replicas_per_node: 1
constraints:
- "node.role==manager"
volumes:
- ${ALTERNATIVE_DOCKER_ROOT_DIR:-/var/lib/docker}/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ${DATA_DIR}/filebeat/data:/usr/share/filebeat/data
secrets:
- source: ca_crt
target: /usr/share/filebeat/ca.crt
mode: 0440
configs:
- source: filebeat.yml
target: /usr/share/filebeat/filebeat.yml
mode: 0444
environment:
ELASTIC_HOSTS_LIST: ${ELASTIC_HOSTS_LIST}
BEATS_SYSTEM_USERNAME: ${LOGSTASH_WRITER_USER}
BEATS_SYSTEM_PASSWORD: ${LOGSTASH_WRITER_PASSWORD}
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "1"
networks:
- elastic
apm-server:
image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/apm/apm-server:${STACK_VERSION}
user: ${RUN_AS_USER}
deploy:
replicas: ${APM_SERVER_REPLICAS:-1}
placement:
constraints:
- "node.labels.name==node3"
configs:
- source: apm-server.yml
target: /usr/share/apm-server/apm-server.yml
mode: 0644
uid: ${RUN_AS_USER}
secrets:
- source: ca_crt
target: /usr/share/apm-server/config/certs/ca.crt
mode: 0440
uid: ${RUN_AS_USER}
- source: apm_crt
target: /usr/share/apm-server/config/certs/apm-server.crt
mode: 0440
uid: ${RUN_AS_USER}
- source: apm_key
target: /usr/share/apm-server/config/certs/apm-server.key
mode: 0440
uid: ${RUN_AS_USER}
environment:
ELASTIC_HOSTS_LIST: ${ELASTIC_HOSTS_LIST}
KIBANA_SYSTEM_PASSWORD: ${KIBANA_SYSTEM_PASSWORD}
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
ports:
- target: 8200
published: 8200
mode: host
networks:
- elastic
# fleet-server:
# image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/beats/elastic-agent:${STACK_VERSION}
# user: root # note, synthetic browser monitors require this set to `elastic-agent`
# deploy:
# placement:
# max_replicas_per_node: 1
# constraints:
# - "node.labels.name==node1"
# ports:
# - 8220:8220
# environment:
# - FLEET_URL=https://fleet-server:8220
# - FLEET_SERVER_ENABLE=true
# - FLEET_SERVER_CERT=/usr/share/elastic-agent/certs/fleet-server.crt
# - FLEET_SERVER_CERT_KEY=/usr/share/elastic-agent/certs/fleet-server.key
# - ELASTICSEARCH_HOST=https://es01:9200
# - ELASTICSEARCH_USERNAME=elastic
# - ELASTICSEARCH_PASSWORD=${ELASTIC_PASSWORD}
# - ELASTICSEARCH_CA=/usr/share/elastic-agent/certs/ca.crt
# - KIBANA_HOST=https://kibana:5601
# - KIBANA_FLEET_USERNAME=elastic
# - KIBANA_FLEET_PASSWORD=${ELASTIC_PASSWORD}
# - KIBANA_CA=/usr/share/elastic-agent/certs/ca.crt
# # - ELASTIC_AGENT_TAGS
# # - FLEET_SERVER_ENABLE=true
# # - FLEET_SERVER_ELASTICSEARCH_HOST=https://es01:9200
# # - FLEET_SERVER_ELASTICSEARCH_CA=/usr/share/elastic-agent/certs/ca.crt
# # - FLEET_SERVER_SERVICE_TOKEN=LXpWZUhvOEJTdXZZWndEOGRQVko6TDBXTHM2Y2NUOEtPMFB1bEg5bjl3QQ==
# # - FLEET_SERVER_CERT=/usr/share/elastic-agent/certs/fleet-server.crt
# # - FLEET_SERVER_CERT_KEY=/usr/share/elastic-agent/certs/fleet-server.key
# # - FLEET_SERVER_ES_CERT=/usr/share/elastic-agent/certs/fleet-server.crt
# # - FLEET_SERVER_ES_CERT_KEY=/usr/share/elastic-agent/certs/fleet-server.key
# # # Preparing Kibana for Fleet
# # - KIBANA_FLEET_HOST=https://kibana:5601
# # - KIBANA_FLEET_USERNAME=elastic
# # - KIBANA_FLEET_PASSWORD=${ELASTIC_PASSWORD}
# # - KIBANA_FLEET_CA=/usr/share/elastic-agent/certs/ca.crt
# volumes:
# - ${DATA_DIR}/fleet-server/data:/usr/share/elastic-agent/state/data
# secrets:
# - source: ca_crt
# target: /usr/share/elastic-agent/certs/ca.crt
# mode: 0440
# - source: fleet-server_crt
# target: /usr/share/elastic-agent/certs/fleet-server.crt
# mode: 0440
# - source: fleet-server_key
# target: /usr/share/elastic-agent/certs/fleet-server.key
# mode: 0440
# logging:
# driver: "json-file"
# options:
# max-size: "50m"
# max-file: "1"
# networks:
# - elastic
# fleet-agent:
# image: ${IMAGE_REGISTRY_PREFIX}docker.elastic.co/beats/elastic-agent-complete:${STACK_VERSION}
# deploy:
# placement:
# max_replicas_per_node: 1
# constraints:
# - "node.labels.name==node2"
# environment:
# - FLEET_ENROLL=true
# - FLEET_URL=https://fleet-server:8220
# - FLEET_CA=/usr/share/elastic-agent/certs/ca.crt
# - ELASTIC_AGENT_CERT=/usr/share/elastic-agent/certs/elastic-agent.crt
# - ELASTIC_AGENT_CERT_KEY=/usr/share/elastic-agent/certs/elastic-agent.key
# - KIBANA_FLEET_HOST=https://kibana:5601
# - KIBANA_FLEET_USERNAME=elastic
# - KIBANA_FLEET_PASSWORD=${ELASTIC_PASSWORD}
# volumes:
# - ${DATA_DIR}/elastic-agent/data:/usr/share/elastic-agent/state/data
# secrets:
# - source: ca_crt
# target: /usr/share/elastic-agent/certs/ca.crt
# mode: 0440
# - source: elastic-agent_crt
# target: /usr/share/elastic-agent/certs/elastic-agent.crt
# mode: 0440
# - source: elastic-agent_key
# target: /usr/share/elastic-agent/certs/elastic-agent.key
# mode: 0440
# logging:
# driver: "json-file"
# options:
# max-size: "50m"
# max-file: "1"
# networks:
# - elastic
configs:
jvm_options:
file: ./elasticsearch/jvm.options.tmpl
template_driver: golang
metricbeat-system.yml:
file: ./metricbeat/metricbeat-system.yml
template_driver: golang
metricbeat-monitoring.yml:
file: ./metricbeat/metricbeat-monitoring.yml
template_driver: golang
filebeat.yml:
file: ./filebeat/filebeat-stack.yml
template_driver: golang
apm-server.yml:
file: ./apm-server/apm-server.yml
template_driver: golang
elastic_initial_setup_script.sh:
file: ./elasticsearch/elastic_initial_setup_script.sh
template_driver: golang
kafka-jaas.conf:
file: ./logstash/kafka-jaas.conf
template_driver: golang
secrets:
ca_crt:
file: ./elasticsearch/certs/ca/ca.crt
ca_key:
file: ./elasticsearch/certs/ca/ca.key
es01_crt:
file: ./elasticsearch/certs/es01/es01.crt
es01_key:
file: ./elasticsearch/certs/es01/es01.key
es02_crt:
file: ./elasticsearch/certs/es02/es02.crt
es02_key:
file: ./elasticsearch/certs/es02/es02.key
es03_crt:
file: ./elasticsearch/certs/es03/es03.crt
es03_key:
file: ./elasticsearch/certs/es03/es03.key
kibana_crt:
file: ./elasticsearch/certs/kibana/kibana.crt
kibana_key:
file: ./elasticsearch/certs/kibana/kibana.key
apm_crt:
file: ./elasticsearch/certs/apm-server/apm-server.crt
apm_key:
file: ./elasticsearch/certs/apm-server/apm-server.key
elastic-agent_crt:
file: ./elasticsearch/certs/elastic-agent/elastic-agent.crt
elastic-agent_key:
file: ./elasticsearch/certs/elastic-agent/elastic-agent.key
fleet-server_crt:
file: ./elasticsearch/certs/fleet-server/fleet-server.crt
fleet-server_key:
file: ./elasticsearch/certs/fleet-server/fleet-server.key