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.

  • MoogleMaestro@kbin.social
    link
    fedilink
    arrow-up
    7
    ·
    1 year ago

    My understanding is that you’d need a combination of a reverse proxy and a general proxy manager. Nginx Proxy Manager handles a lot of these tasks for me on my website, with most of my use being a simple redirect though.