-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-efk.yml
95 lines (95 loc) · 2.03 KB
/
docker-compose-efk.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
version: '3.7'
services:
api:
environment:
- hume.logging.format=json
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: hume.core.api
profiles:
- hume
orchestra:
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: hume.core.orchestra
profiles:
- hume
web:
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: hume.core.web
profiles:
- hume
alerting-controller:
environment:
- logging.format=json
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: alerting.controller
profiles:
- hume
alerting-operator:
environment:
- logging.format=json
logging:
driver: "fluentd"
options:
fluentd-address: localhost:24224
tag: alerting.operator
profiles:
- hume
# EFK
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_STACK_VERSION}
environment:
- xpack.security.enabled=false
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- "elasticsearch_data:/usr/share/elasticsearch/data"
ports:
- 9200:9200
- 9300:9300
profiles:
- efk
kibana:
image: docker.elastic.co/kibana/kibana:${ELASTIC_STACK_VERSION}
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
ports:
- 5601:5601
depends_on:
- elasticsearch
profiles:
- efk
fluentd:
image: docker.graphaware.com/mirror/fluentd-elasticsearch:5.2.0
volumes:
- ./config/fluentd/conf:/fluentd/etc
links:
- "elasticsearch"
ports:
- "24224:24224"
- "24224:24224/udp"
profiles:
- efk
volumes:
elasticsearch_data: