-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 1.24 KB
/
docker-compose.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
version: '3.9'
networks:
monitoring:
volumes:
prometheus-data:
grafana-data:
services:
prometheus:
image: prom/prometheus:v2.35.0
container_name: prometheus
restart: unless-stopped
volumes:
- ./configs/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=1y'
expose:
- 9090
networks:
- monitoring
nordea-rate-metrics:
image: kerwood/nordea-rate-metrics
container_name: nordea-rate-metrics
restart: unless-stopped
environment:
ROCKET_ADDRESS: 0.0.0.0
expose:
- 8000
networks:
- monitoring
grafana:
image: grafana/grafana:8.5.0
container_name: grafana
restart: unless-stopped
volumes:
- grafana-data:/var/lib/grafana
- ./configs/grafana-datasource.yml:/etc/grafana/provisioning/datasources/grafana-datasource.yml
- ./configs/grafana-dashboard.yml:/etc/grafana/provisioning/dashboards/grafana-dashboard.yml
- ./configs/nordea-rate-metrics.json:/var/lib/grafana/dashboards/nordea-rate-metrics.json
ports:
- 3000:3000
networks:
- monitoring