Edit
Damn, Lemmy is so awesome!
Thanks so much everybody for the quick amazing replies! I will look into the suggested reverse proxy options and get something set up.
Thanks again for all of the insight!
End edit
Let’s say I have multiple services and applications running on my server.
In this case, I’m using docker and have layer 2 docker network to give each container a dedicated IP.
Internally, I can navigate to the local IP to utilize or access them.
How would I go about accessing each service through the internet using different subdomains? Right now all subdomains and the primary domain route directly to my external IP and seem to all resolve to the same service /application.
I imagine this would have to be done with some sort of routing rules but would love some insight! I have a UniFi Dream Router.
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Do you know of a good reference for using Traefik with non-docker uses? I’ve struggled to figure that one out lol
What you need is a so called File Provider. The linked blog post seems to summarize this pretty good, at least better than the original docs.
You define your path as a “router” and the ip traefik should point to as “service”. Optionally, you can define all kinds of “middlewares”. Example: