-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
48 lines (44 loc) · 1.05 KB
/
docker-compose.yaml
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
version: '3'
services:
pihome:
image: pihome
build: .
restart: always
network_mode: host
devices:
- "/dev/mem:/dev/mem"
privileged: true
ports:
- 5000:5000
environment:
- NETWORK_TO_SCAN=${NETWORK_TO_SCAN}
prometheus:
image: prom/prometheus:v2.16.0
user: root
volumes:
- ./prometheus/:/etc/prometheus/
- /var/prometheus:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=30d'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
ports:
- 9090:9090
extra_hosts:
- pihome:${HOST_IP}
depends_on:
- pihome
restart: always
grafana:
image: grafana/grafana:6.6.2
depends_on:
- prometheus
ports:
- 80:3000
volumes:
- ./grafana/:/etc/grafana
restart: always
environment:
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}