Add pi-hole

This commit is contained in:
Marko Korhonen 2020-07-12 11:59:30 +03:00
parent 76673db0dd
commit 3b2383e7d7
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5

View file

@ -0,0 +1,27 @@
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8069:80/tcp"
- "443:443/tcp"
environment:
TZ: "Europe/Helsinki"
WEBPASSWORD: "${WEBPASSWORD}"
# Volumes store your data between container upgrades
volumes:
- "/docker/pi-hole/pi-hole:/etc/pihole/"
- "/docker/pi-hole/dnsmasq:/etc/dnsmasq.d/"
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped