Expected Behaviour
I want to run Pi-hole with Unbound (recursive, no external upstreams) using Docker and Portainer and I’m unsure about the recommended architecture.
I already have Pi-hole running successfully in its own Docker container, and now want to add Unbound in the correct way.
Specifically, I’m confused about:
-
running Pi-hole and Unbound as two separate containers vs one combined container
-
using individual containers vs a Docker stack (docker-compose) in Portainer
My goal is a clean, maintainable, best-practice setup without unnecessary complexity.
System Details
-
OS: Debian (Raspberry Pi OS)
-
Hardware: Raspberry Pi (8GB)
-
Docker: Docker standalone (Portainer, not Swarm)
Actual Behaviour
Pi-hole works fine as a container, but when adding Unbound I find conflicting advice:
-
some guides use two containers
-
some combine everything into one container
-
some insist on docker-compose stacks
Portainer handles stacks and containers differently, which adds to the confusion.
Main Question
What is the recommended and supported way today to run Pi-hole + Unbound with Docker?
-
Separate containers or one container?
-
Stack or individual containers?
-
Is there any tutorial?