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.
Do you have a reverse proxy? Thats the bit you need
https://stackoverflow.com/questions/55647323/how-to-setup-dynamic-subdomains-in-docker-with-nginx#55648213
And cloudflare possibly
https://developers.cloudflare.com/dns/zone-setups/subdomain-setup/