forked from devicehive/devicehive-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitoring.yml
52 lines (48 loc) · 1.51 KB
/
monitoring.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
version: "3"
services:
cadvisor:
image: google/cadvisor:latest
restart: unless-stopped
privileged: true
volumes:
- "/:/rootfs:ro"
- "/var/run:/var/run:rw"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"
prometheus:
image: prom/prometheus:v2.2.1
links:
- "cadvisor"
ports:
- "9090:9090"
restart: unless-stopped
volumes:
- "/prometheus"
- prometheus:/prometheus
- "./lib/monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro,Z"
grafana:
image: devicehive/devicehive-grafana:5.0.4-custom
links:
- "prometheus"
restart: unless-stopped
environment:
GF_USERS_ALLOW_SIGN_UP: "true"
GF_USERS_ALLOW_ORG_CREATE: "false"
GF_USERS_AUTO_ASSIGN_ORG: "false"
GF_USERS_AUTO_ASSIGN_ORG_ROLE: Admin
GF_ALERTING_ENABLED: "false"
GF_DEFAULT_INSTANCE_NAME: Grafana
GF_SERVER_ROOT_URL: "%(protocol)s://%(domain)s:/grafana"
volumes:
- grafana-data:/var/lib/grafana
- "./lib/monitoring/grafana-datasources-config.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:ro,Z"
- "./lib/monitoring/grafana-dashboards-config.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro,Z"
- "./lib/monitoring/devicehive-dashboard.json:/opt/grafana/dashboards/devicehive-dashboard.json:ro,Z"
dh_proxy:
links:
- "grafana"
volumes:
- "./grafana_location.conf:/etc/nginx/location.d/grafana.conf:ro,Z"
volumes:
grafana-data:
prometheus: