-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (58 loc) · 1.68 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.4'
services:
elasticsearch:
image: elasticsearch:7.4.1
container_name: elasticsearch
environment:
- TIMEZONE=Asia/ShangHai
- discovery.type=single-node
restart: always
ports:
- "9200:9200"
- "9300:9300"
networks:
- elk_network
kibana:
image: kibana:7.4.1
container_name: kibana
environment:
- TIMEZONE=Asia/ShangHai
restart: always
ports:
- "5601:5601"
networks:
- elk_network
depends_on:
- elasticsearch
logstash:
image: logstash:7.4.1
container_name: logstash
environment:
- TIMEZONE=Asia/ShangHai
restart: always
ports:
- "5044:5044"
- "9600:9600"
networks:
- elk_network
volumes:
- ./logstash/config:/usr/share/logstash/config
- ./logstash/pipeline:/usr/share/logstash/pipeline
depends_on:
- kibana
filebeat:
image: elastic/filebeat:7.4.1
container_name: filebeat
environment:
- TIMEZONE=Asia/ShangHai
restart: always
networks:
- elk_network
volumes:
- ./filebeat:/usr/share/filebeat
- ~/Desktop/log:/usr/share/log
depends_on:
- logstash
networks:
elk_network:
driver: bridge