-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathcompose.yml
More file actions
31 lines (29 loc) · 832 Bytes
/
compose.yml
File metadata and controls
31 lines (29 loc) · 832 Bytes
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
services:
prometheus:
image: prom/prometheus
container_name: prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yaml'
restart: unless-stopped
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- 9090:9090
extra_hosts:
- "host.docker.internal:host-gateway"
grafana:
image: grafana/grafana
container_name: grafana
restart: unless-stopped
volumes:
- ./grafana/datasource.yaml:/etc/grafana/provisioning/datasources/datasource.yaml
- ./grafana/dashboard.yaml:/etc/grafana/provisioning/dashboards/main.yaml
- ./grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 3000:3000
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
prometheus_data:
networks: {}