I have multiple docker applications (Minecraft servers, web servers, databases, unify webkey, etc.) running on a Linux machine. Let's call this machine example.com. Any call to example.com will be picket up by the Linux machine. Is there a way to redirect its subdomains to the different docker instances running on it, so for example mincraft1.example.com goo's to the Minecraft docker1 and unify.example.com goo's to the unify docker. This without mapping the ports on the localhost of the Linux machine.
I managed this for HTTP requests with nginx but there you have to specify every port you want to use. I would like to redirect all the ports and protocols at once. Technically mapping the IP of the docker to the subdomain.
Is this possible and how can I do this?