generated from sherifabdlnaby/elastdocker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.monitor.yml
42 lines (38 loc) · 1.37 KB
/
docker-compose.monitor.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
version: '3.5'
services:
# Prometheus Exporters ------------------------------
elasticsearch-exporter:
image: justwatch/elasticsearch_exporter:1.1.0
restart: always
command: ["--es.uri", "http://${ELASTIC_USERNAME}:${ELASTIC_PASSWORD}@${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}",
"--es.all",
"--es.snapshots",
"--es.indices"]
ports:
- "9114:9114"
logstash-exporter:
image: alxrem/prometheus-logstash-exporter
restart: always
ports:
- "9304:9304"
command: ["-logstash.host", "${LOGSTASH_HOST}"]
# Cluster Logs Shipper ------------------------------
filebeat-cluster-logs:
image: filebeat:elastdocker-${ELK_VERSION}
build:
context: tools/filebeat/
args:
ELK_VERSION: $ELK_VERSION
restart: always
# -e flag to log to stderr and disable syslog/file output
command: -e --strict.perms=false
user: root
environment:
ELASTIC_USERNAME: ${ELASTIC_USERNAME}
ELASTIC_PASSWORD: ${ELASTIC_PASSWORD}
KIBANA_HOST_PORT: ${KIBANA_HOST}:${KIBANA_PORT}
ELASTICSEARCH_HOST_PORT: ${ELASTICSEARCH_HOST}:${ELASTICSEARCH_PORT}
volumes:
- ./tools/filebeat/monitor/filebeat_cluster_logs.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