File tree Expand file tree Collapse file tree 2 files changed +14
-47
lines changed
.internal/templates/services/pihole Expand file tree Collapse file tree 2 files changed +14
-47
lines changed Original file line number Diff line number Diff line change @@ -10,22 +10,6 @@ const pihole = () => {
1010 "8089:80" : 'http'
1111 } ,
1212 modifyableEnvironment : [
13- {
14- key : 'TZ' ,
15- value : 'Etc/UTC'
16- } ,
17- {
18- key : 'WEBPASSWORD' ,
19- value : 'password'
20- } ,
21- {
22- key : 'DNS1' ,
23- value : '8.8.8.8'
24- } ,
25- {
26- key : 'DNS2' ,
27- value : '8.8.4.4'
28- } ,
2913 {
3014 key : 'INTERFACE' ,
3115 value : 'eth0'
Original file line number Diff line number Diff line change @@ -2,42 +2,25 @@ pihole:
22 container_name : pihole
33 image : pihole/pihole:latest
44 ports :
5- - " 8089:80/tcp"
6- - " 53:53/tcp"
7- - " 53:53/udp"
8- - " 67:67/udp"
9- # - "443:443/tcp"
5+ - " 8089:80/tcp"
6+ - " 53:53/tcp"
7+ - " 53:53/udp"
8+ - " 67:67/udp"
109 environment :
11- - TZ=Etc/UTC
12- - WEBPASSWORD=%randomAdminPassword%
13- - DNS1=8.8.8.8
14- - DNS2=8.8.4.4
15- # - DNSSEC=false
16- # - DNS_BOGUS_PRIV=True
17- # - CONDITIONAL_FORWARDING=False
18- # - CONDITIONAL_FORWARDING_IP=your_router_ip_here (only if CONDITIONAL_FORWARDING=true)
19- # - CONDITIONAL_FORWARDING_DOMAIN=optional
20- # - CONDITIONAL_FORWARDING_REVERSE=optional
21- # - ServerIP=your_Pi's_IP_here << recommended
22- # - ServerIPv6= your_Pi's_ipv6_here << Required if using ipv6
23- # - VIRTUAL_HOST=$ServerIP
24- # - IPv6=True
25- - INTERFACE=eth0
26- # - DNSMASQ_LISTENING=local
10+ - TZ=${TZ:-Etc/UTC}
11+ - WEBPASSWORD=
12+ # see https://sensorsiot.github.io/IOTstack/Containers/Pi-hole/#adminPassword
13+ - INTERFACE=eth0
14+ # see https://github.com/pi-hole/docker-pi-hole#environment-variables
2715 volumes :
28- - ./volumes/pihole/etc-pihole:/etc/pihole
29- - ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
16+ - ./volumes/pihole/etc-pihole:/etc/pihole
17+ - ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
3018 dns :
31- - 127.0.0.1
32- - 1.1.1.1
33- # Recommended but not required (DHCP needs NET_ADMIN)
34- # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
19+ - 127.0.0.1
20+ - 1.1.1.1
3521 cap_add :
36- - NET_ADMIN
22+ - NET_ADMIN
3723 restart : unless-stopped
38- networks :
39- - iotstack_nw
40- - vpn_nw
4124 logging :
4225 options :
4326 max-size : " 5m"
You can’t perform that action at this time.
0 commit comments