This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
docker_systems/pihole/docker-compose.yml

34 lines
705 B
YAML

version: "2"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
network_mode: "host"
environment:
- TZ
- WEBPASSWORD
- ServerIP
- DNS1
- DNS2
volumes:
- 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"