-
I am taking this example config as reference to add Redis cache for unbound.
Suppose pihole only needs to talk to unbound, why does it need docker-bridge network? I haven't tested the example config in my home production environment. Just want to make sure I fully understand the settings before pulling the trigger. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hey @x-Felix and thanks for reaching out! That's pretty much the compose file I'm using. I prefer a The networks for the unbound-db and unbound-db-socket ain't really needed. In case you ask yourself, >>why Cheers! Edit: I hope you don't mind, I have converted this into a discussion. |
Beta Was this translation helpful? Give feedback.
-
Thanks @madnuttah . I have no question of pihole and unbound using macvlan approach. But you are saying the unbound, unbound-db and unbound-db-socket instances does not need to be in the same docker network? How they communicate then? |
Beta Was this translation helpful? Give feedback.
-
Thanks, @madnuttah. |
Beta Was this translation helpful? Give feedback.
Unbound needs network, the db and socket don't neccessarily need a network, they just serve redis or the socket volume respectively and are accessed by Unbound through the UNIX socket. If you'd like to use redis with TCP/IP instead of socket, a network for the unbound-db would be needed.