-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (74 loc) · 1.71 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
version: '3'
services:
fluentd:
build: ./fluentd
user: root
networks:
- logging
volumes:
- ./fluentd/:/fluentd/etc
links:
- "elasticsearch"
ports:
- "24224:24224"
- "24224:24224/udp"
logging:
driver: "json-file"
options:
max-size: "1G"
max-file: "2"
restart: always
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
networks:
- logging
ports:
- "9200:9200"
- "9300:9300"
expose:
- "9200"
volumes:
- 'es_data:/usr/share/elasticsearch/data'
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
environment:
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m'
- 'xpack.security.enabled=false'
- 'discovery.type=single-node'
- 'bootstrap.memory_lock=true'
- 'node.master=true'
- 'node.data=true'
- 'node.ingest=true'
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
fluentd-async-connect: 'true'
fluentd-retry-wait: '1s'
fluentd-max-retries: '30'
tag: els
restart: always
kibana:
image: kibana:7.5.0
networks:
- logging
links:
- "elasticsearch"
ports:
- "5601:5601"
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
fluentd-async-connect: 'true'
fluentd-retry-wait: '1s'
fluentd-max-retries: '30'
tag: kibana
restart: always
networks:
logging:
driver: bridge
volumes:
es_data:
driver: local