Assign Pi-Hole its own network and static ip
This commit is contained in:
parent
4d88921b06
commit
07f06531fb
11
pi-hole.yaml
11
pi-hole.yaml
@ -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
|
||||||
restart: unless-stopped
|
networks:
|
||||||
|
pi-hole:
|
||||||
|
ipv4_address: <static ip>
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
pi-hole:
|
||||||
|
name: pi-hole
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: <subnet>
|
Loading…
Reference in New Issue
Block a user