-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (45 loc) · 1000 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
40
41
42
43
44
45
46
47
48
49
version: "3.4"
services:
metrics-humidity:
container_name: metrics-humidity
image: flerkam/metrics-humidity:v0.1.0
restart: unless-stopped
ports:
- "80"
networks:
- rpi
env_file:
- ./.env
prometheus:
container_name: prometheus
image: prom/prometheus:latest
ports:
- "9090"
volumes:
- ./prometheus/:/etc/prometheus/
restart: unless-stopped
depends_on:
- metrics-humidity
networks:
- rpi
grafana:
image : grafana/grafana
user: "${UID}:${GID}"
depends_on:
- prometheus
ports:
- "3000"
volumes:
- ./grafana/data/:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./.env
networks:
- rpi
restart: unless-stopped
labels:
- "traefik.http.routers.grafanaproxy.rule=Host(`grafana.ubuntu`)"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
networks:
rpi:
external: true