DockNS/docker-compose.yaml

44 lines
936 B
YAML
Raw Permalink Normal View History

2022-06-15 17:58:21 -04:00
version: '3'
networks:
dns_net:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
services:
pihole:
container_name: pihole
hostname: pihole
image: pihole/pihole:latest
networks:
dns_net:
ipv4_address: 172.20.0.6
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
environment:
TZ: "America/New_York"
WEBPASSWORD: "password"
DNS1: "172.20.0.7#53"
2022-06-15 17:58:21 -04:00
DNS2: "no"
volumes:
- "$PWD/etc-pihole/:/etc/pihole/"
#- "$PWD/etc-dnsmasq.d/:/etc/dnsmasq.d/"
2022-06-15 17:58:21 -04:00
restart: always
unbound:
container_name: unbound
image: mvance/unbound:latest
networks:
dns_net:
ipv4_address: 172.20.0.7
volumes:
- "$PWD/unbound/forward-records.conf:/opt/unbound/etc/unbound/forward-records.conf"
2023-04-27 20:51:54 -04:00
- "$PWD/unbound/resolv.conf:/etc/resolv.conf"
2022-06-15 17:58:21 -04:00
healthcheck:
disable: true
restart: always