-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.monitoring.yml
33 lines (32 loc) · 1.02 KB
/
docker-compose.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
version: '3.9'
services:
prometheus:
image: prom/prometheus:latest
user: "0"
restart: unless-stopped
hostname: monitoring-prometheus
ports:
- "9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ~/volumes/rtu_mirea_vuc_schedule/prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:latest
user: "0"
restart: unless-stopped
hostname: monitoring-grafana
depends_on:
- prometheus
ports:
- ${GF_EXTERNAL_HTTP_PORT}:3000
volumes:
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards
- ./monitoring/grafana/provisioning/providers.yml:/etc/grafana/provisioning/dashboards/providers.yml
- ./monitoring/grafana/provisioning/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ~/volumes/rtu_mirea_vuc_schedule/grafana_data:/var/lib/grafana
env_file:
- .env
environment:
TZ: Europe/Moscow