Assign Pi-Hole its own network and static ip

This commit is contained in:
moshferatu 2024-01-09 13:44:54 -08:00
parent 4d88921b06
commit 07f06531fb

View File

@ -12,4 +12,13 @@ services:
volumes: volumes:
- <docker directory>/pi-hole:/etc/pihole - <docker directory>/pi-hole:/etc/pihole
- <docker directory>/pi-hole/dns:/etc/dnsmasq.d - <docker directory>/pi-hole/dns:/etc/dnsmasq.d
networks:
pi-hole:
ipv4_address: <static ip>
restart: unless-stopped restart: unless-stopped
networks:
pi-hole:
name: pi-hole
ipam:
config:
- subnet: <subnet>