feat: Adds net_admin and cap_sys_time to pihole.

This commit is contained in:
2025-03-25 10:20:49 -04:00
parent 18fae60aea
commit 9467e220e6
2 changed files with 4 additions and 1 deletions

View File

@@ -12,6 +12,9 @@ services:
- .env
security_opt:
- no-new-privileges:true
cap_add:
- NET_ADMIN
- CAP_SYS_TIME
volumes:
- pihole_data:/etc/pihole
- pihole_dnsmasq:/etc/dnsmasq.d

View File

@@ -3,7 +3,7 @@ TZ="America/New_York"
WEBPASSWORD="super-secret!"
DNSMASQ_LISTENING=local
# This should be the server IP that pihole is running on.
PIHOLE_DNS_="192.168.50.5#53"
PIHOLE_DNS_="192.168.50.5#5053"
# This mount needs (3) folders, 'pihole', 'dnsmasq.d', 'unbound'.
NFS_MNT=":/var/nfs/shared/<mnt>"
NFS_ADDR="192.168.1.105"