I have pi-hole installed on a raspberry pi not in docker container. I install a server with docker container but when I go to the URL like http://192.168.0.104/joplin it redirects to a 404 page by pi-hole that has a link to redirect to dashboard. I tried adding a custom dnsmasq overwrite I saw online but it did not help.
Expected Behaviour:
when I go to the url http://192.168.0.104/joplin it should take me to Joplin page
- raspberry pi os
- raspberry pi 3
- docker-compose up -d
- Docker engine version 29.6.2
it says both app and db are running with docker ps
Actual Behaviour:
Pi-hole intercepting url and redirecting to a 404 page
Debug Token:
Replace this text with the debug token provided from running pihole -d
If you want that to work you could :
- Use some kind or Reverse Proxy to be able to access both Pi-Hole and Joplin at the same time on the same IP address.
- Or setup your Docker Network with MACVLAN so Joplin runs on a seperate IP adddress.
Pick your poison 
You didn't post a debug log, so I can only guess what are the possible issues.
You want to serve pages from /joplin. By default, Pi-hole web server doesn't serve pages outside /admin.
If you want to allow pages from other directories, you need to enable this option:
Also, note that Pi-hole web server can serve only static pages, or pages written using Lua language. Pages written in other languages like PHP won't be executed.
If this doesn't solve the issue, please provide a debug token and more details about the pages you want to serve.