Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use pihole dhcp server #39

Closed
Junn-Sorran opened this issue Apr 13, 2022 · 4 comments
Closed

Can't use pihole dhcp server #39

Junn-Sorran opened this issue Apr 13, 2022 · 4 comments

Comments

@Junn-Sorran
Copy link

Hello,

It's not possible to use the dhcp service provided with the pihole in the stack due to the network configuration.
The official pihole documentation provide multiple solutions for this problem, do you think it would be possible to implement one with the stack?
https://docs.pi-hole.net/docker/dhcp/

Thanks!

@GreenFrogSB
Copy link
Owner

Hi Junn,
Change implemented to the code as per article https://docs.pi-hole.net/docker/dhcp/
"Inside your docker-compose.yml remove all ports and replace them with: network_mode: host"
Pihole template updated

@Junn-Sorran
Copy link
Author

That was fast thank you!
However i had to make the change manually in portainer to switch to host network? I pulled, updated and redeployed the stack but i kept the old configuration, do you know why?

@GreenFrogSB
Copy link
Owner

GreenFrogSB commented Apr 15, 2022 via email

@Junn-Sorran
Copy link
Author

Thank you it worked!

As a side note, can you add the LMD_BACKUP directory to the gitignore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants