-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.beats.yml
53 lines (50 loc) · 1.46 KB
/
compose.beats.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
version: "2.2"
services:
metricbeat01:
depends_on:
es01:
condition: service_healthy
esmonitoring01:
condition: service_healthy
kibana:
condition: service_healthy
kibmonitoring01:
condition: service_healthy
image: docker.elastic.co/beats/metricbeat:${STACK_VERSION}
restart: always
user: root
command: ["run", "-e", "--strict.perms=false"]
networks:
- elk
volumes:
- metricbeatdata01:/usr/share/metricbeat/data
- "./metricbeat_monitoring.yml:/usr/share/metricbeat/metricbeat.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "/sys/fs/cgroup:/hostfs/sys/fs/cgroup:ro"
- "/proc:/hostfs/proc:ro"
- "/:/hostfs:ro"
environment:
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
filebeat01:
depends_on:
es01:
condition: service_healthy
image: docker.elastic.co/beats/filebeat:${STACK_VERSION}
restart: always
command: ["run", "-e", "--strict.perms=false"]
user: root
networks:
- elk
volumes:
- certs:/usr/share/filebeat/certs
- filebeatdata01:/usr/share/filebeat/data
- "./filebeat_monitoring.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"
environment:
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
volumes:
metricbeatdata01:
driver: local
filebeatdata01:
driver: local