-
Notifications
You must be signed in to change notification settings - Fork 168
/
docker-compose-elk.yaml
104 lines (99 loc) · 2.94 KB
/
docker-compose-elk.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "3"
services:
lark-es:
container_name: lark-es
hostname: lark-es
image: elastic/elasticsearch:7.17.6
restart: always
user: root
ports:
- 9200:9200
networks:
lark-network:
ipv4_address: "192.168.9.110"
volumes:
- ./configs/docker/elasticsearch/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- /Volumes/data/lark/elasticsearch/data:/usr/share/elasticsearch/data
- /Volumes/data/lark/elasticsearch/logs:/usr/share/elasticsearch/logs
privileged: true
environment:
- "discovery.type=single-node"
- "xpack.security.enabled=false"
- "TAKE_FILE_OWNERSHIP=true"
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "TZ=Asia/Shanghai"
- "ELASTIC_PASSWORD=lark2022"
lark-kibana:
container_name: lark-kibana
hostname: lark-kibana
image: elastic/kibana:7.17.6
restart: always
ports:
- 5601:5601
networks:
lark-network:
ipv4_address: "192.168.9.120"
volumes:
- ./configs/docker/kibana/kibana.yml:/usr/share/kibana/config/kibana.yml
privileged: true
environment:
- elasticsearch.hosts=http://lark-es:9200
- "TZ=Asia/Shanghai"
depends_on:
- lark-es
lark-logstash:
container_name: lark-logstash
hostname: lark-logstash
image: logstash:7.17.6
restart: always
ports:
- 7701:7701
# - 7702:7702
# - 7703:7703
- 5044:5044
# - 9600:9600
networks:
lark-network:
ipv4_address: "192.168.9.130"
volumes:
- ./configs/docker/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml
#- /Volumes/data/lark/logstash/logs:/usr/share/logstash/logs
- ./configs/docker/logstash/pipeline/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
#- ./configs/docker/logstash/certs:/usr/share/logstash/config/certs
privileged: true
environment:
TZ: Asia/Shanghai
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTICSEARCH_HOSTS: http://lark-es:9200
depends_on:
- lark-es
lark-filebeat:
container_name: lark-filebeat
hostname: lark-filebeat
image: elastic/filebeat:7.17.6
restart: always
networks:
lark-network:
ipv4_address: "192.168.9.131"
volumes:
- ./configs/docker/filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
- /var/log/lark:/usr/share/filebeat/logs
#- ./configs/docker/filebeat/certs:/etc/filebeat/config/certs
#- /Volumes/data/lark/filebeat/containers:/var/lib/docker/containers:ro
#- /Volumes/data/lark/filebeat/docker.sock:/var/run/docker.sock:ro
privileged: true
environment:
TZ: Asia/Shanghai
ES_JAVA_OPTS: "-Xmx256m -Xms256m"
ELASTICSEARCH_HOSTS: http://lark-es:9200
depends_on:
- lark-logstash
- lark-kibana
networks:
lark-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.9.0/24
ip_range: 192.168.9.0/24