Files
homelab/pihole/docker-compose.yml
2022-09-20 14:35:06 +08:00

44 lines
871 B
YAML

version: "3.9"
networks:
dns_net:
name: dns_net
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: always
ports:
- "53:53/tcp"
- "53:53/udp"
- "8180:80/tcp"
hostname: pihole
networks:
dns_net:
ipv4_address: 172.20.0.10
environment:
- "TZ=Asia/Singapore"
- "WEBPASSWORD=${PIHOLE_PASSWORD}"
- "DNS1=172.20.0.11#5335"
- "DNS2=no"
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
unbound:
image: mvance/unbound-rpi:latest
container_name: unbound
restart: always
volumes:
- "./unbound:/opt/unbound/etc/unbound"
networks:
dns_net:
ipv4_address: 172.20.0.11
healthcheck:
disable: true