Pihole and Unbound
I’m trying to run pihole and unbound in docker on the gold. But I’m having issues with unbound. The docker container continually restarts, so I’ve got something wrong or I’m approaching this incorrectly with the docker setup/network setup
Any help appreciated.
Here is the yaml file (i can also post the unbound config file if required):
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole
environment:
# set a secure password here or the default will be firewalla
WEBPASSWORD: 'XXXXXXXXXX'
# Volumes store your data between container upgrades
volumes:
- '/data/pi-hole/etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
- '/etc/localtime:/etc/localtime:ro'
restart: unless-stopped
networks:
default:
# static IP address for pi-hole
ipv4_address: 172.16.0.2
unbound:
container_name: unbound
image: mvance/unbound-rpi:latest
networks:
default:
ipv4_address: 172.16.0.10
volumes:
- '/data/pi-hole/unbound/:/etc/unbound/'
ports:
- "5335:5335/tcp"
- "5335:5335/udp"
healthcheck:
disable: true
restart: unless-stopped
networks:
default:
driver: bridge
ipam:
config:
# your chosen docker network here
- subnet: 172.16.0.0/24
Please sign in to leave a comment.
Comments
31 comments