reroute request back to sender with HAProxy

  docker, haproxy, routes

Is it possible to return a request back to its original sender but on a different port with HAProxy?

So if I send a get request to a HAProxy, that same get request will end up on an application on my localhost listening on some port.

Some context: I know this is all kinds of silly but I’m trying to setup an environment where an application inside a docker container on my localhost can communicate with some app on my localhost that is not in the same docker network

Source: Docker Questions