-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
executable file
·79 lines (73 loc) · 1.8 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.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
container_name: elasticsearch
hostname: elasticsearch
ports:
- "9200:9200"
- "9300:9300"
environment:
TZ: "Europe/Moscow"
ES_JAVA_OPTS: "-Xms1024m -Xms1024m"
volumes:
- "./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "esdata:/usr/share/elasticsearch/data"
deploy:
resources:
limits:
cpus: "2"
memory: "2g"
mode: replicated
replicas: 1
restart:
unless-stopped
logstash:
image: docker.elastic.co/logstash/logstash:7.5.0
container_name: logstash
hostname: logstash
# user: root
volumes:
- "./logstash/config:/usr/share/logstash/config"
- "./logstash/patterns:/usr/share/logstash/patterns"
- "./logstash/pipeline:/usr/share/logstash/pipeline"
- "./logstash/geoip_db:/usr/share/logstash/geoip_db"
ports:
- "5145:5145/udp"
command: "bin/logstash --config.reload.automatic"
environment:
TZ: "Europe/Moscow"
LS_JAVA_OPTS: "-Xmx512m -Xms512m"
deploy:
resources:
limits:
cpus: "2"
memory: "1g"
depends_on:
- elasticsearch
restart:
unless-stopped
kibana:
image: docker.elastic.co/kibana/kibana:7.5.0
container_name: kibana
hostname: kibana
ports:
- "5601:5601"
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
environment:
TZ: "Europe/Moscow"
deploy:
resources:
limits:
cpus: "1"
memory: "1g"
mode: replicated
replicas: 1
depends_on:
- elasticsearch
restart:
unless-stopped
volumes:
esdata:
driver: local