I use marathon to launch a nginx-docker-container named "my-app", and set up Mesos-DNS, such that "my-app.marathon.mesos" returns the IP of the slave running the container (e.g. 10.20.30.40).
Now, "my-app" is running on some dynamically-allocated port (e.g. 31001), but I would like http://my-app.marathon.mesos/foo to hit my app at http://10.20.30.40:31001/foo Is there a "best practice" way to achieve this behavior? I was thinking about a proxy running on each slave, listening on port 80, redirecting incoming HTTP requests based on the request host to the correct port on localhost. The "correct port" can be determined by querying mesos-dns itself. This sounds like a pretty common use-case, so I wondered if anyone can point me at an existing solution for this. Thanks! - Itamar.

