10

Hey guys!

I want to take the next step in selfhosting and it seems that docker is something I need for my projects.

I am running a Raspberry Pi 5 (16GB) with pihole+unbound and I want to install NextCloud as well. The problem is: NextCloud and PiHole both want to use port 80, which conflicts.

So, I probably need to remap the ports with docker. I already saw some videos and read some instructions, but so far I had no success setting it up. It's pretty confusing, with no docker-experience.

How do you handle this issue? Maybe I just need a little push in the right direction.

~sp3ctre

you are viewing a single comment's thread
view the rest of the comments
[-] SirHaxalot@nord.pub 1 points 3 days ago

A fronting web server acting as a reverse proxy is the solution to this. In the current landscape I would look into Traefik, it has integration with docker allowing it to discover the correct backend servers.

With this solution you do not need to expose port 80/443 from the other containers at all, rather you’d expose the ports from the Traefik container which will read the request header and sent it to the correct container based on hostname. This means that you might need to setup DNS and point hostnames to your server if you haven’t already.

this post was submitted on 29 May 2026
10 points (100.0% liked)

Docker

1448 readers
1 users here now

founded 3 years ago
MODERATORS