-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (36 loc) · 999 Bytes
/
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
version: "2"
volumes:
prometheus_data:
driver: local
grafana_data:
driver: local
services:
prometheus:
image: prom/prometheus:v3.1.0
container_name: prometheus
volumes:
- prometheus_data:/prometheus
- ./prometheus:/etc/prometheus:ro
ports:
- "9090:9090"
labels:
# tell the rc_visard_ng that all ports mapped to the host (rc_visard_ng) are using http
- com.roboception.app.http
extra_hosts:
- "rc-visard-ng.internal:host-gateway"
restart: unless-stopped
grafana:
image: grafana/grafana:11.5.0
container_name: grafana
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/:ro
- ./grafana/grafana.ini:/etc/grafana/grafana.ini:ro
ports:
- "8080:3000"
labels:
# alternate way to specify the protocol: for a specific port only
- com.roboception.app.http.port=8080
restart: unless-stopped