I'm running a raspberry pi with Debian 11. Got the default docker-compose file from Github and I changed only the web port and the time zone. Local IP of the raspberry pi is 10.0.55.85
docker-compose:
version: "3"
# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "10080:80/tcp"
environment:
TZ: 'Europe/Berlin'
WEBPASSWORD: 'securepass'
# Volumes store your data between container upgrades
volumes:
- '/opt/docker/pihole/etc-pihole:/etc/pihole'
- '/opt/docker/pihole/etc-dnsmasq.d:/etc/dnsmasq.d'
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
restart: unless-stopped # Recommended but not required (DHCP needs NET_ADMIN)
In Chrome I always get the error "This site can't be reached" although a curl in terminal is working
I also tried the web interface in Safari and I get only a blank page
Don't know what's the issue I mean the compose file is default. I also change the DNS pointing to 10.0.55.85 but no chance to get the admin page.
Hi,
well I've tested the connectivity with curl and nectat. Both working fine. So I guess something weird is being sent by lighttpd.
Even if I try to open http://10.0.55.85:10080/admin/ or http://10.0.55.85:10080/admin/login.php doesn't work. Btw I'm not using any firewall for my internal network.
The curl shows that lighttpd is providing all of the content, headers and information that it is set up to do. So the issue isn't there, Pi-hole is fully functional. (Note the X-Pi-hole header for confirmation.)
I think your issue is with the browser or the underlying OS. Note the very last line of the page display: ERR_UNSAFE_PORT which is Chrome telling you that it is blocking your access to http on port 10080. There's a few options that show up from a quick web search on that error, how you wish to address it is up to you.