Short description:
Nginx running on docker, how to configure nginx so that it forwards calls to host.
Long description:
We have one web application which communicates to couple of backends (lets says rest1, rest2 and rest3). We are responsible for rest1
.
Lets consider that I started rest1
manually on my pc and running on 2345 port. I want nginx (which is running in docker) to redirect all call torest1
to my own running instance(note, the instance is running on host, not any container and not in docker). And for rest2
and rest3
to some other docker node or may be some other server (who cares).
What I am looking for is:
docker-compose.yml
configurations (if needed).- nginx configuration.
Thanks in advance.