This repository has been archived by the owner on Jul 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
127 lines (127 loc) · 2.92 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
version: '3.2'
services:
kibana:
image: docker.elastic.co/kibana/kibana:6.0.0
ports:
- "5601:5601"
environment:
- "ELASTICSEARCH_URL=http://elasticsearch:9200"
networks:
- elk
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '2'
memory: 2048M
restart_policy:
condition: on-failure
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.0.0
environment:
- "cluster.name=docker-cluster"
- "network.host=0.0.0.0"
- "transport.host=0.0.0.0"
- "discovery.zen.ping.unicast.hosts=elasticsearch"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
hard: 65536
soft: 65536
nproc: 65538
volumes:
- elastic_data:/usr/share/elasticsearch/data/
networks:
- elk
deploy:
mode: replicated
replicas: 1
endpoint_mode: dnsrr
resources:
limits:
cpus: '4'
memory: 4096M
update_config:
parallelism: 1
delay: 60s
restart_policy:
condition: on-failure
es_proxy:
image: nginx:latest
ports:
- "9200:80"
networks:
- elk
deploy:
mode: global
resources:
limits:
cpus: '1'
memory: 1024M
update_config:
parallelism: 1
delay: 5s
restart_policy:
condition: on-failure
secrets:
- source: es_proxy_config
target: /etc/nginx/nginx.conf
logstash:
image: docker.elastic.co/logstash/logstash:6.0.0
environment:
- "LS_JAVA_OPTS=-Xmx2g"
ports:
- "5044:5044"
networks:
- elk
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '2'
memory: 4096M
update_config:
parallelism: 1
delay: 5s
restart_policy:
condition: on-failure
secrets:
- source: logstash_config
target: /usr/share/logstash/pipeline/logstash.conf
curator:
image: valerianomanassero/curator-centos:5.4.0
networks:
- elk
deploy:
mode: replicated
replicas: 1
resources:
limits:
cpus: '1'
memory: 256M
restart_policy:
condition: on-failure
secrets:
- source: curator_config
target: /root/.curator/curator.yml
- source: curator_actions_config
target: /root/.curator/actions.yml
secrets:
logstash_config:
file: ./docker-configs/logstash/logstash.conf
curator_config:
file: ./docker-configs/curator/curator.yml
curator_actions_config:
file: ./docker-configs/curator/actions.yml
es_proxy_config:
file: ./docker-configs/es_proxy/nginx.conf
volumes:
elastic_data:
driver: local
networks:
elk:
driver: overlay