Move pihole to NFS

This commit is contained in:
Andreas Zweili 2022-05-17 20:01:21 +02:00
parent 53b1a425e7
commit 4c685fdbc5
1 changed files with 14 additions and 2 deletions

View File

@ -11,11 +11,23 @@ services:
- DNS1
- DNS2
volumes:
- ./etc-pihole:/etc/pihole/
- ./etc-dnsmasq.d:/etc/dnsmasq.d/
- etc_pihole:/etc/pihole/
- etc_dnsmasq:/etc/dnsmasq.d/
dns:
- "${DNS3}"
- "${DNS1}"
cap_add:
- NET_ADMIN
restart: unless-stopped
volumes:
etc_pihole:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1"
device: ":/server_data/pihole/etc-pihole"
etc_dnsmasq:
driver_opts:
type: "nfs"
o: "addr=10.7.89.108,nolock,hard,rw,vers=4.1"
device: ":/server_data/pihole/etc-dnsmasq"