Skip to content

Instantly share code, notes, and snippets.

@ayr-ton
Last active March 14, 2020 01:06
Show Gist options
  • Save ayr-ton/b3056aa18b60156d5857f52f87f8c441 to your computer and use it in GitHub Desktop.
Save ayr-ton/b3056aa18b60156d5857f52f87f8c441 to your computer and use it in GitHub Desktop.
pi-hole with unbound and hsd
version: "3.3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
networks:
dns:
ipam:
config:
- subnet: 172.21.0.0/16
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
- dns
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "8081:80/tcp"
environment:
TZ: 'America/Sao_Paulo'
WEBPASSWORD: 'XxXxX'
ServerIP: 'x.x.x.x'
DNS1: 172.21.0.2
DNS2: 172.21.0.3
volumes:
- "./etc-pihole/:/etc/pihole/"
- "./etc-dnsmasq.d/:/etc/dnsmasq.d/"
dns:
- 172.21.0.2
cap_add:
- NET_ADMIN
- SYS_ADMIN
depends_on:
- unbound
restart: unless-stopped
unbound:
container_name: unbound
image: alpinelinux/unbound:latest
networks:
dns:
ipv4_address: 172.21.0.2
cap_add:
- NET_ADMIN
- SYS_ADMIN
volumes:
- "./etc-unbound/:/etc/unbound"
hsd:
container_name: hsd
image: ayrton/hsd:latest
networks:
dns:
ipv4_address: 172.21.0.3
cap_add:
- NET_ADMIN
- SYS_ADMIN
volumes:
- "./etc-hsd/:/root/.hsd"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment