add config for pihole

This commit is contained in:
Andreas Zweili 2020-04-14 18:28:24 +02:00
parent 69c3a01c45
commit 045a88ae94
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,6 @@
TZ=Europe/Zurich
WEBPASSWORD=password
ServerIP=10.7.89.2
DNS1=84.200.69.80
DNS2=1.1.1.1
DNS3=127.0.0.1

View File

@ -0,0 +1,21 @@
version: "2"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
network_mode: "host"
environment:
- "TZ=${TZ}"
- "WEBPASSWORD=${WEBPASSWORD}"
- "ServerIP=${ServerIP}"
- "DNS1=${DNS1}"
- "DNS2=${DNS2}"
volumes:
- ./etc-pihole:/etc/pihole/
- ./etc-dnsmasq.d:/etc/dnsmasq.d/
dns:
- "${DNS3}"
- "${DNS1}"
cap_add:
- NET_ADMIN
restart: unless-stopped