-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
91 lines (88 loc) · 2.04 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: '3'
services:
homeassistant:
container_name: home-assistant
image: homeassistant/raspberrypi3-homeassistant:stable
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
volumes:
# Data persistency
- ./hass:/config
devices:
# Zwave cable
- /dev/ttyACM0:/dev/ttyACM0
# P1 cable
- /dev/ttyUSB0:/dev/ttyUSB0
environment:
- TZ=Europe/Amsterdam
depends_on:
- influxdb
restart: always
network_mode: host
influxdb:
container_name: influxdb
image: influxdb:latest
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
ports:
- 8086:8086
environment:
INFLUXDB_DB: home_assistant
volumes:
# Data persistency
- ./influxdb:/var/lib/influxdb
restart: always
network_mode: host
grafana:
container_name: grafana
image: grafana/grafana:5.4.3
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
ports:
- 3000:3000
volumes:
# Data persistency
# sudo chown 472:472 ./grafana
- ./grafana:/var/lib/grafana
depends_on:
- influxdb
restart: always
network_mode: host
pihole:
container_name: pihole
image: pihole/pihole:master
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "10"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
TZ: 'Europe/Amsterdam'
# WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades
volumes:
# Data persistency
- './pi-hole/etc-pihole/:/etc/pihole/'
- './pi-hole/etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 127.0.0.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: always