-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
46 lines (43 loc) · 1.13 KB
/
docker-compose.yaml
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
version: "3.6"
services:
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
ports:
- 9090:9090
restart: unless-stopped
volumes:
- type: bind
source: ./metrics/prometheus/prometheus.yml
target: /etc/prometheus/prometheus.yml
- type: volume
source: prom_data
target: /prometheus
grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3001:3000
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=grafana
volumes:
- type: bind
source: ./metrics/grafana
target: /etc/grafana/provisioning/datasources
read_only: true
- type: bind
source: ./metrics/grafana/dashboard.yaml
target: /etc/grafana/provisioning/dashboards/main.yaml
- type: bind
source: ./metrics/grafana/dashboards
target: /var/lib/grafana/dashboards
- type: volume
source: grafana_data
target: /var/lib/grafana
volumes:
prom_data:
grafana_data: