-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
54 lines (48 loc) · 1.41 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
version: '3.7'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.0
container_name: elasticsearch
ports: ['9200:9200']
environment:
- "ELASTIC_PASSWORD=elastic"
- "bootstrap.memory_lock=true"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
- "TAKE_FILE_OWNERSHIP=1"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- './var/elasticsearch:/usr/share/elasticsearch/data'
logstash:
image: docker.elastic.co/logstash/logstash:7.5.0
container_name: logstash
environment:
- "ELASTIC_PASSWORD=elastic"
ports: ['9600:9600']
depends_on: ['elasticsearch']
volumes:
- './etc/logstash/pipeline:/usr/share/logstash/pipeline'
- './var/logs:/logs'
filebeat:
image: docker.elastic.co/beats/filebeat:7.5.0
container_name: filebeat
environment:
- "ELASTIC_PASSWORD=elastic"
user: root
volumes:
- './var/filebeat/log/:/var/log/:ro'
- './var/filebeat/docker.sock:/var/run/docker.sock'
- './var/logs/:/var/lib/docker/containers/logs:ro'
- './etc/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml'
command: ["--strict.perms=false"]
kibana:
image: docker.elastic.co/kibana/kibana:7.5.0
container_name: kibana
environment:
- "ELASTIC_PASSWORD=elastic"
ports: ['5601:5601']
depends_on:
- elasticsearch