Hi,
i added to my Raspberry 4 Docker with Portainer and want to install Pihole with Unbound on it best way with a "Stack" or Docker Compose File.
Are there any Tutorials or existing Installation Instructions for it who works ?
Hi,
i added to my Raspberry 4 Docker with Portainer and want to install Pihole with Unbound on it best way with a "Stack" or Docker Compose File.
Are there any Tutorials or existing Installation Instructions for it who works ?
Maintainers of unbound Docker images may provide example configurations, e.g. GitHub - klutchell/unbound-docker: unofficial unbound multiarch docker image.
Ok thanks i try this.
The Klutchell/unbound Docker does not support port 5335 only 53.
I have now a working Pihole with Unbound from here:
https://www.xfelix.com/2020/09/pihole-unbound-docker-setup-on-raspberry-pi/
The Docker Hub Image is from madnuttah/unbound
``
This works with Port 5335, i dont know why Klutchell doesnt
The example you've quoted is for a Pi-hole 5 container and may not work with Pi-hole v6.
That seems possible, but you'd need to apply a custom configuration for that unbound container.
But it's irrelevant anyway, as each Docker container is bound to its own IP address - at the least, a Docker internal one. You don't need to bind your unbound container to port 5335.
Did you actually find Klutchell's docker compose example for Pi-hole?
Yes i find it, but Klutchells Docker only reponse to 53, i can map the Port 5335 to 53 in Docker.
In Pihole that works then with Docker Network 172.x.x.x to Port 53. You have to set custom DNS in Pihole to this port.
There is no need to make any adjustments for Pi-hole's upstream IPs or ports in Klutchell's sample configuration. They have that covered by including:
# Sets upstream DNS to unbound sibling container
FTLCONF_dns_upstreams: unbound
It works fine now, Unbound actually without chroot but it works.