-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose-monitoring.yml
38 lines (34 loc) · 945 Bytes
/
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
34
35
36
37
38
version: '3.9'
networks:
yb-dbnet:
name: yb-dbnet
services:
grafana:
container_name: yb-grafana
image: grafana/grafana:8.1.5
networks:
- yb-dbnet
volumes:
- type: bind
source: ./etc/grafana/dashboards/yb
target: /etc/grafana/dashboards/yb
- type: bind
source: ./etc/grafana/grafana.ini
target: /etc/grafana/grafana.ini
- type: bind
source: ./etc/grafana/provisioning/dashboards/yb.yaml
target: /etc/grafana/provisioning/dashboards/yb.yaml
- type: bind
source: ./etc/grafana/provisioning/datasources/yb-prometheus.yaml
target: /etc/grafana/provisioning/datasources/yb-prometheus.yaml
ports:
- 3000:3000
prometheus:
container_name: yb-prometheus
image: prom/prometheus:v2.30.0
networks:
- yb-dbnet
volumes:
- type: bind
source: ./etc/prometheus
target: /etc/prometheus