docker-pi-hole icon indicating copy to clipboard operation
docker-pi-hole copied to clipboard

Update README.md

Open Merire opened this issue 3 years ago • 4 comments

Adding the dns option in the docker-compose.yml. Without it, lighttpd won't start correctly.

Signed-off-by: Merire [email protected]

Description

simple option added in the docker-compose.yml. Also mentioned in the bug here : https://github.com/pi-hole/docker-pi-hole/issues/490

Motivation and Context

Searched for a long time why the admin interface was not working. Turns out lighttpd was not started correctly. Started it, still was not working as intended. Solved the issue by adding

dns: - 127.0.0.1 - 1.1.1.1

in the docker-compose.yml.

It was not mentioned in the readme, so I made a pull request.

How Has This Been Tested?

Works on my raspberry pi 4. Also documented here https://github.com/pi-hole/docker-pi-hole/issues/490

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • [x] My code follows the code style of this project.
  • [x] My change requires a change to the documentation.
  • [x] I have updated the documentation accordingly.

Merire avatar Jul 06 '22 08:07 Merire

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jul 06 '22 08:07 sonarqubecloud[bot]

I don't think these parameters are what is stopping lighttpd from starting.

Look at the OP of that issue you linked, and see that their docker run command _already includes those two dns options (and they never commented again)

PromoFaux avatar Jul 09 '22 16:07 PromoFaux

I don't think these parameters are what is stopping lighttpd from starting.

Look at the OP of that issue you linked, and see that their docker run command _already includes those two dns options (and they never commented again)

I can confirm that in my case, lighttpd doesn't start without it and starts with it.

Merire avatar Jul 11 '22 13:07 Merire

Using the current (suggested) compose script:

image

Can you show us what you are seeing without these set, please?

PromoFaux avatar Jul 11 '22 13:07 PromoFaux