-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (51 loc) · 1.25 KB
/
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
50
51
version: "3.9"
networks:
monitoring:
driver: bridge
volumes:
prometheus: {}
grafana: {}
services:
dht22_pi:
build: .
restart: unless-stopped
container_name: dht22_pi
privileged: true
ports:
- "80:80"
devices:
- "/dev/gpiomem:/dev/gpiomem"
networks:
- monitoring
prometheus:
image: prom/prometheus:v2.31.1
container_name: prometheus
restart: unless-stopped
volumes:
- prometheus:/prometheus
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
depends_on:
- dht22_pi
networks:
- monitoring
grafana:
image: grafana/grafana:8.3.0
container_name: grafana
restart: unless-stopped
volumes:
- grafana:/var/lib/grafana
- ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/dashboards.yml
- ./grafana/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
- ./grafana/default_dashboard.json:/var/lib/grafana/dashboards/default_dashboard.json
environment:
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ports:
- "3000:3000"
depends_on:
- prometheus
networks:
- monitoring