Forked from SeanChristopherConway/docker-compose.yaml
Last active
April 15, 2020 06:56
-
-
Save twixt01/41d94a11012da44595d0316dd88af419 to your computer and use it in GitHub Desktop.
Docker Pihole with unbound for authoritative, validating, recursive caching DNS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
dns: 127.0.0.1 | |
restart: unless-stopped | |
links: | |
- unbound | |
ports: | |
- 53:53/tcp | |
- 53:53/udp | |
- 67:67/udp | |
- 80:80/tcp | |
- 443:443/tcp | |
environment: | |
ServerIP: {server_ip of host, eg. 192.x.x.x} | |
DNS1: 10.0.0.2#5053 | |
DNS2: "no" | |
IPv6: "no" | |
TZ: America/Vancouver | |
PROXY_LOCATION: pihole | |
cap_add: | |
- NET_ADMIN | |
volumes: | |
- ${DOCKER_CONFIGS}/docker_pihole/pihole/:/etc/pihole/ #use a .env file to set, eg. DOCKER_CONFIGS=/whatever_folder_you_want | |
- ${DOCKER_CONFIGS}/docker_pihole/pihole/dnsmasq.d/:/etc/dnsmasq.d/ | |
networks: | |
pihole_net: | |
ipv4_address: 10.0.0.3 | |
unbound: | |
container_name: unbound | |
image: klutchell/unbound:armv7hf | |
restart: unless-stopped | |
networks: | |
pihole_net: | |
ipv4_address: 10.0.0.2 | |
networks: | |
pihole_net: | |
driver: bridge | |
ipam: | |
config: | |
- subnet: 10.0.0.0/29 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment