-
Notifications
You must be signed in to change notification settings - Fork 17
/
docker-compose.elk.yml
49 lines (44 loc) · 1.03 KB
/
docker-compose.elk.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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.5
environment:
- discovery.type=single-node
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- elk
ports:
- "9200:9200"
logstash:
image: docker.elastic.co/logstash/logstash:7.17.5
volumes:
- ./logstash.conf:/usr/share/logstash/pipeline/logstash.conf
networks:
- elk
ports:
- "5000:5000"
- "5044:5044"
kibana:
image: docker.elastic.co/kibana/kibana:7.17.5
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
networks:
- elk
ports:
- "5601:5601"
depends_on:
- elasticsearch
filebeat:
image: docker.elastic.co/beats/filebeat:7.17.5
volumes:
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- elk
depends_on:
- logstash
networks:
elk:
volumes:
esdata: