Created
July 12, 2022 17:09
-
-
Save mallardduck/37e9309ac041199a9fc0e110ca5eb0ee to your computer and use it in GitHub Desktop.
PiHole+Unbound
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" | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: piholes | |
image: pihole/pihole:2022.07 | |
network_mode: host # I do this to keep things simple - but could also do macvlan | |
environment: | |
TZ: 'America/Detroit' # Update | |
ServerIP: '127.0.0.1' # Set to IP of Host in host mode - or IP assigned via Macvlan | |
WEBPASSWORD: 'letsmein' # Update | |
VIRTUAL_HOST: '127.0.0.1' | |
WEB_PORT: '8042' | |
# Volumes store your data between container upgrades | |
volumes: | |
- pi_configs:/etc/pihole/:rw | |
- pi_dnsmasq:/etc/dnsmasq.d/:rw | |
cap_add: | |
- NET_ADMIN | |
dns: | |
- 127.0.0.1 # Leave this the same, we point pihole to unbound in settings. | |
restart: unless-stopped | |
unbound: | |
container_name: unbound | |
image: mvance/unbound:1.12.0 | |
network_mode: host | |
restart: unless-stopped | |
volumes: | |
- unbound:/opt/unbound/etc/unbound/:rw | |
volumes: | |
pi_configs: | |
external: true | |
pi_dnsmasq: | |
external: true | |
unbound: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment