45 lines
899 B
YAML
45 lines
899 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"
|
|
- "DNSMASQ_USER=root"
|
|
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
|