How can I use nginx-proxy to reverse-proxy a website that is not running in a container?

138 Views Asked by At

I understand how to use nginx-proxy so that I can reverse proxy to services running in multiple docker containers. However I have several websites on my network that are not running in containers that I also want to reverse proxy. In the official nginx-proxy support forum one user said you can accomplish this:

You can create an "additional.conf" for nginx. There is documentation on the main README page.

In this additional.conf, you would create a server configuration for the name and map it to the IP address of your destination.

You'll need to ensure that the destination IP is accessible from within the container. Looking at your options for a Docker network type (host vs bridge, etc.) might help.

However I’m unable to find anything discussing how to create a new .conf file where I would perform the ip mapping. Is this user correct? Any examples would be appreciated.

0

There are 0 best solutions below