-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.5 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
version: '3.6'
services:
kibana:
image: docker.elastic.co/kibana/kibana:7.3.0
volumes:
- "./kibana.yml:/usr/share/kibana/config/kibana.yml"
restart: always
ports:
- "5601:5601"
links:
- elasticsearch
depends_on:
- elasticsearch
networks: ['stack']
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.0
environment:
- discovery.type=single-node
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "es_data:/usr/share/elasticsearch/data"
ports:
- "9200:9200"
networks: ['stack']
filebeat:
image: docker.elastic.co/beats/filebeat:${TAG}
container_name: filebeat
secrets:
- source: filebeat.yml
target: /usr/share/filebeat/filebeat.yml
volumes:
- "./input:/logs"
- "./scripts/setup-beat.sh:/usr/local/bin/setup-beat.sh:ro"
- "./config/filebeat/modules.d:/usr/share/filebeat/modules.d"
- "filebeat_data:/usr/share/filebeat/data"
depends_on:
- elasticsearch
- kibana
networks: ['stack']
healthcheck:
test: filebeat test config
interval: 30s
timeout: 15s
retries: 5
networks: {stack: {}}
# use docker volume to persist ES data outside of a container.
volumes:
es_data:
filebeat_data:
secrets:
filebeat.yml:
file: ./config/filebeat/filebeat.yml