pudc/docker-compose.yml

48 lines
1.0 KiB
YAML

version: "3"
volumes:
pihole_etc:
pihole_dnsmasq:
services:
pihole:
depends_on:
- unbound
image: pihole/pihole:latest
container_name: pihole
hostname: pihole
domainname: pihole.domain
ports:
- 53:53/tcp # DNS
- 53:53/udp
- 1010:80/tcp # Dashboard
environment:
ServerIP: 192.168.xxx.xxx
TZ: Europe/Berlin
WEBPASSWORD: password
REV_SERVER: "true"
REV_SERVER_TARGET: 192.168.xxx.1
REV_SERVER_DOMAIN: fritz.box # Router Domain
REV_SERVER_CIDR: 192.168.xxx.0/16
DNS1: 172.25.0.53 # Unbound IP
DNS2: 172.25.0.53
DNSMASQ_LISTENING: "all"
volumes:
- pihole_etc:/etc/pihole:rw
- pihole_dnsmasq:/etc/dnsmasq.d:rw
restart: unless-stopped
unbound:
container_name: unbound
restart: unless-stopped
image: klutchell/unbound
networks:
default:
ipv4_address: 172.25.0.53 # fixed IP address
networks:
default:
ipam:
config:
- subnet: 172.25.0.1/24