services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
network_mode: host
environment:
TZ: 'Europe/London'
volumes:
- './etc-pihole:/etc/pihole'
# I have one local.conf file in there which pushes out a second DNS to avoid the
# android sticking 8.8.8.8 in as a backup problem (see link below)
- './etc-dnsmasq.d:/etc/dnsmasq.d'
- './backups-tmp:/backup'
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
Thanks. But I should also note that the exact same effect is achieved on a scripted vanilla install in a proxmox lxc in testing.