Skip to content

Commit 91dfdf5

Browse files
authored
Merge pull request #650 from Paraphraser/20230122-pihole-experimental
2023-01-22 Pi-hole admin password changes - experimental branch - PR 3 of 3
2 parents 36e81c6 + 422374d commit 91dfdf5

File tree

2 files changed

+14
-47
lines changed

2 files changed

+14
-47
lines changed

.internal/templates/services/pihole/config.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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'

.internal/templates/services/pihole/template.yml

Lines changed: 14 additions & 31 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)