-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-viz.yml
47 lines (43 loc) · 1.85 KB
/
docker-compose-viz.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
version: '3.9'
services:
grafana:
image: grafana/grafana-oss:9.2.3
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/grafana.ini:/etc/grafana/grafana.ini
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/dashboards/dashboard.yml:/etc/grafana/provisioning/dashboards/dashboard.yml
- ./grafana/dashboards/nodes/node-exporter-full_rev31.json:/etc/grafana/provisioning/dashboards/nodes/node-exporter-full_rev31.json
- ./grafana/dashboards/containers/docker-container-monitor.json:/etc/grafana/provisioning/dashboards/containers/docker-container-monitor.json
- ./grafana/dashboards/applications/openhim_nodejs_dashboard.json:/etc/grafana/provisioning/dashboards/applications/openhim_nodejs_dashboard.json
- ./grafana/dashboards/applications/openhim_transactions_dashboard.json:/etc/grafana/provisioning/dashboards/applications/openhim_transactions_dashboard.json
- ./grafana/dashboards/applications/rw-dashboard.json:/etc/grafana/provisioning/dashboards/applications/rw-dashboard.json
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: dev_password_only
ports:
- 3000:3000
networks:
monitoring:
prometheus:
image: prom/prometheus:v2.38.0
user: root
ports:
- 9090:9090
volumes:
- prometheus-data:/prometheus
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
networks:
monitoring:
volumes:
prometheus-data:
grafana-data:
networks:
monitoring: