Skip to content

Commit 2b056b6

Browse files
committed
2023-06-15 Pi-hole - old-menu branch - PR 2 of 2
Applies changes recommended by `yamllint`. Adds `FTLCONF_MAXDBDAYS` to the template environment file with the existing default of 365 days. Master branch documentation explains its use. Adds `PIHOLE_DNS_` to the template environment file with the existing defaults of 8.8.8.8 and 8.8.4.4. Master branch documentation explains its use. Signed-off-by: Phill Kelley <[email protected]>
1 parent fea7968 commit 2b056b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.templates/pihole/pihole.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ TZ=${TZ:-Etc/UTC}
22
# see https://sensorsiot.github.io/IOTstack/Containers/Pi-hole/#adminPassword
33
WEBPASSWORD=
44
INTERFACE=eth0
5+
FTLCONF_MAXDBDAYS=365
6+
PIHOLE_DNS_=8.8.8.8;8.8.4.4
57
# see https://github.com/pi-hole/docker-pi-hole#environment-variables

.templates/pihole/service.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@
99
env_file:
1010
- ./services/pihole/pihole.env
1111
volumes:
12-
- ./volumes/pihole/etc-pihole:/etc/pihole
13-
- ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
12+
- ./volumes/pihole/etc-pihole:/etc/pihole
13+
- ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
1414
dns:
1515
- 127.0.0.1
1616
- 1.1.1.1
17-
# Recommended but not required (DHCP needs NET_ADMIN)
18-
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
1917
cap_add:
2018
- NET_ADMIN
2119
restart: unless-stopped

0 commit comments

Comments
 (0)