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 = () => {
10
10
"8089:80" : 'http'
11
11
} ,
12
12
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
- } ,
29
13
{
30
14
key : 'INTERFACE' ,
31
15
value : 'eth0'
Original file line number Diff line number Diff line change @@ -2,42 +2,25 @@ pihole:
2
2
container_name : pihole
3
3
image : pihole/pihole:latest
4
4
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"
10
9
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
27
15
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
30
18
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
35
21
cap_add :
36
- - NET_ADMIN
22
+ - NET_ADMIN
37
23
restart : unless-stopped
38
- networks :
39
- - iotstack_nw
40
- - vpn_nw
41
24
logging :
42
25
options :
43
26
max-size : " 5m"
You can’t perform that action at this time.
0 commit comments