Pi-hole and unbound on one container, creating custom docker image!
ฝัง
- เผยแพร่เมื่อ 30 พ.ย. 2024
- In this video I will be showing you how to create a Docker file to build your own Docker image with Pi-hole and unbound running on a single container. DNS Server for home lab.
*Link to my GitHub where you can find the pihole-unbound.yml and piholeunbound docker file*
(docker compose / piholeunbound)
github.com/rob...
Link to article outlying unbound on Pi-hole.
rb.gy/3q4ss
dockerfile
dockerfile tutorial
dockerfile build
Had some trouble correcting indentation in compose file but succeeded at the end. In fact I'm new to compose plugin in OMV, I watched quite many videos but yours is definitely the most comprehensive one. Thank you very much, really appreciate your work.
Thank you for your feedback. I appreciate it.🙂
If you are getting
Thanks 😀 love you videos!
Glad you like them! Cheers!
Thank you so much for the amazing video! Everything is working great. 😊 I was wondering if you could create a video on integrating Nginx Proxy Manager with an OMV environment and Pi-hole with Unbound. I’m having trouble getting the SSL certificate with Cloudflare to work properly-it always seems to fail. Any tips or guidance would be greatly appreciated!
Hello, nginx proxy manager is in my list of pending videos. Thanks for the feedback. Much appreciated. 🙂
Thank you so much for this video!
You are so welcome!
Really appreciate the guide, well documented and easy to follow. Keep up the good work
I went through the guide today and everything went through fine I didn't get any errors The only thing that happened to me is I couldn't name the files part to the same as the container image which I just renamed it and it was fine and then I changed a two values the same way you did.
But for some reason when I try to start it it starts but it crashes my open media vault and then I was able to access the pie hole site one time but then it wouldn't access again I have a feeling there's something I have entered wrong under the subnet or the gateway but I'm not sure.
Hello, I am not sure what might have gone wrong. I haven't experienced this personally.
Mann this was great really appreciate it! I had a small error towards the end with pihole telling me I messed up line 1 in the config, but redoing some steps got it up and running.
Thank you for inspiring me to create this video. I am glad I was able to help 🙂
I know it's a stupid question but, how can I run the updates for both pinhole and unbound without messing up the installation?
Hello, you would need to recreate the container image using the same docker file. Then stop your pihole container and start it again. This will load the new container that you created.
If you want to play it safe, you can copy the pihole files and rename the folder and create a new compose file. You would ssh into your omv and and find your pihole install folder in the video mine is called piholeunbound.
cp -R piholeunbound piholeunbound2 this is just going to copy your current pihole folder to another folder.
Then create a new docker file and copy the old one but make sure you add a tag let say 1 and then pull and create container. What this will do is create a new piholeunbound:1, so then on the new yaml / compose file you would use 1 as a tag. Example: piholeunbound:1 under image:
Now you would create a new compose file and name it different than the old one. Make sure you change the container name in the yaml file and also the install path under volumes. Instead of piholeunbound/... it will be piholeunbound2.. this will be different if you copied the folder under a different name. Make sure you turn off the old one when starting new test one since the ip address will be the same. If for whatever reason the test one does not have your data DO NOT do this on your main piholeunbound container. Unless it all goes well then you can just rebuild the original docker file and stop the test one and start your original, this is assuming that tag is set as latest like in the video. Or you can also just continue using the test one. Hope this helps.
Extra: can you make a new tutorial to cover pihole + cloudflared for dns as an alternative configuration? I'm currently running a cloudlfared container and I'm wondering if I can create a compose with cloudflared + pihole
Hello, which cloudflare container are you using? And what is the purpose/ use case of the cloudflare container?
I did all the things mentioned here, item by item and when I run the "top command" seems like unbound is not running. I have already redone the image and the stack (using portainer) 3 times already manually writing the code you provided (and copy pasting some items) updating all the IP's correctly etc. Pi-hole is running but it seems like unbound is not
Something might of been missed. If you console into the container "docker run -it containerName /bin/bash" You can try starting unbound by using this command. "/etc/init.d/unbound start" then run the top command again and see if it started. If it doesn't start they was an issue when the stack was created. You can actually create a base container (pihole/pihole:latest) and run each line via console and you can see where the issue is. If you use ubuntu base image you will have to also to install pihole. I can probably create a video sort describing this but it will be boring tho.
Why would you want unbound, isn’t pihole good enough on itself? Can anyone explain that to me?
Hello, you can check the documentation on pihole website for unbound. The explanation there is a lot better than what I can explain. You can google "pihole unbound documentation" the first link you get explains what happens with upstream dns and when you have unbound as dns. Hope this helps.
hey, please could you post your docker image file? I can't get mine to pull and build properly. The dockerfile keeps restarting over and over
or maybe its something else, I followed your pihole+macvlan video and it worked. But adding the unbound stuff I'm having issues
Hello, let me test the file to make sure it works. If all works good, I will add a link in my description. Please bare with me thank you.
@@robwithtech thank you mate, I really appreciate it
Hi, I have just updated the video description with the link to my GitHub. You can find the docker file and the pihole-unbound.yml file. Hope this helps.
@@robwithtech Thanks so much! Its working perfectly now. I still have no idea what issue I had, probably a typo or network config.
i dont have "compose" in my openmediavault
OMV-Extras 😮i dont know that
Hello, you need to install OMV-Extras via SSH. Then you click on that plugin and enable docker repo. After that you can go to plugin and install compose plugin.
Why have the comments need removed?