-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.39 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
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
# disable all ports when enabling network_mode=host
network_mode: host
# ports:
# - 53:53/tcp
# - 53:53/udp
# - 67:67/udp
# - 80:80/tcp
environment:
TZ: Europe/Zurich
WEBPASSWORD: dsfasdfsdafsdfasfdasdfasdfsadfasdfsdf
DNSMASQ_USER: root
# Volumes store your data between container upgrades
volumes:
- ./pihole/etc-pihole/:/etc/pihole/
- ./pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
#- ./pihole/var-log/pihole.log:/var/log/pihole.log
# These are needed for PADD
- ./PADD:/padd
- /proc/loadavg:/proc/loadavg:ro
- /proc/meminfo:/proc/meminfo:ro
- /sys/class/thermal:/sys/class/thermal:ro
- /sys/devices/system/cpu:/sys/devices/system/cpu:ro
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
unbound:
container_name: unbound
image: mvance/unbound-rpi
restart: unless-stopped
environment:
- TZ=Europe/Zurich
# disable all ports when enabling network_mode=host
network_mode: host
# ports:
# - 5335:53/tcp
# - 5335:53/udp
volumes:
- ./unbound/unbound.conf:/opt/unbound/etc/unbound/unbound.conf
# cap_add:
# - NET_ADMIN