-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-elk.yml
46 lines (46 loc) · 1020 Bytes
/
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
version: '3'
services:
kb:
image: "library/kibana:7.3.1"
container_name: "kb"
ports:
- "5601:5601"
environment:
TZ: "Asia/Shanghai"
volumes:
- ./kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
depends_on:
- "es"
networks:
- dev-network
restart: always
es:
image: "elasticsearch:7.3.1"
container_name: "es"
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: single-node
TZ: "Asia/Shanghai"
networks:
- dev-network
restart: always
fb:
image: "docker.elastic.co/beats/filebeat:7.3.1"
container_name: "fb"
environment:
output.logstash.enabled: 0
TZ: "Asia/Shanghai"
volumes:
- ./filebeat/test.log:/home/rocket.log:ro
- ./filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
- ./filebeat/fields.yml:/fields.yml
depends_on:
- "es"
- "kb"
networks:
- dev-network
restart: always
networks:
dev-network: