dotfiles/docker/pihole/docker-compose.yml

27 lines
626 B
YAML
Raw Normal View History

2020-07-12 11:59:30 +03:00
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8069:80/tcp"
2020-07-12 12:03:24 +03:00
- "8070:443/tcp"
2020-07-12 11:59:30 +03:00
environment:
TZ: "Europe/Helsinki"
WEBPASSWORD: "${WEBPASSWORD}"
volumes:
2020-07-12 12:01:46 +03:00
- "/docker/pihole/pihole:/etc/pihole/"
- "/docker/pihole/dnsmasq:/etc/dnsmasq.d/"
2020-07-12 11:59:30 +03:00
dns:
- 127.0.0.1
- 1.1.1.1
# Recommended but not required (DHCP needs NET_ADMIN)
2020-07-12 12:01:46 +03:00
# https://github.com/pihole/docker-pihole#note-on-capabilities
2020-07-12 11:59:30 +03:00
cap_add:
- NET_ADMIN
restart: unless-stopped