-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.elk.yml
67 lines (62 loc) · 1.7 KB
/
docker-compose.elk.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
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.1
command:
- elasticsearch
- -E
- logger.level=error
environment:
discovery.type: single-node
volumes:
- elastic_search_data:/usr/share/elasticsearch/data
deploy:
placement:
constraints:
- node.role == manager
kibana:
image: ${REGISTRY}openmpf_kibana:${TAG}
build: kibana
environment:
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
LOGGING_QUIET: 'true'
KIBANA_DEFAULTAPPID: discover
# Disable Kibana apps we don't use. Not all Kibana apps can be disabled.
TELEMETRY_OPTIN: 'false'
TELEMETRY_ENABLED: 'false'
XPACK_APM_UI_ENABLED: 'false'
XPACK_ML_ENABLED: 'false'
XPACK_MONITORING_ENABLED: 'false'
XPACK_REPORTING_ENABLED: 'false'
XPACK_GRAPH_ENABLED: 'false'
NEWSFEED_ENABLED: 'false'
ports:
- '5601:5601'
depends_on:
- elasticsearch
deploy:
placement:
constraints:
- node.role == manager
filebeat:
image: docker.elastic.co/beats/filebeat:7.16.1
command:
# Allow filebeat's own logs to be collected
- -e
- -E
- logging.level=warning
- -E
- 'filebeat.autodiscover.providers=[{type: docker, hints.enabled: true}]'
- -E
- output.elasticsearch.hosts=elasticsearch:9200
# Need to be root to interact with Docker socket
user: root
volumes:
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
deploy:
mode: global
depends_on:
- elasticsearch
volumes:
elastic_search_data: