forked from ecyshor/pi-temperature-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (37 loc) · 986 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
version: "3"
services:
prometheus:
image: prom/prometheus:latest
user: "1000:1000"
container_name: prometheus
restart: unless-stopped
ports:
- 9090:9090
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=2y
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./prometheus/data:/prometheus
depends_on:
- scaap
grafana:
image: grafana/grafana
restart: unless-stopped
user: "1000:1000"
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./grafana/data:/var/lib/grafana #grafana data storage
scaap:
image: ghcr.io/ecyshor/scaap:latest
ports:
- "3030:3030"
volumes:
- .:/etc/scaap/:ro # map the config and scripts
restart: unless-stopped
devices:
- "/dev/i2c-1:/dev/i2c-1" #map the sensor inside the container so we can access it