B4J Question Nginx Proxy Manager in Docker and B4J Web Apps

hatzisn

Well-Known Member
Licensed User
Longtime User
Good morning everyone, I have a question that bugs me a lot. I am tinkering in my computer with Nginx Proxy Manager in Docker and a B4J Web App. As most of you probably already know Nginx Proxy Manager is a reverse proxy which can take dns names and handle the traffic between the calling side and a local app that listens on a port. It can expose https on the side of the internet and communicate with plain http with the local app which leads me to the next question. Local in Docker is considered inside the container. So if I put inside Nginx Proxy Manager (from now on NPM) a local communication with the app in 127.0.0.1 it will stay inside the container. My understanding is that the solution to communicate with a local B4J web app is to containerize the application and use the container's local IP to stay inside the "server" and not loop with the external IP of the "server". Is there any other solution that I am not aware of?
 
Last edited:

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
r. My understanding is that the solution to communicate with a local B4J app is to containerize the application and use the container's local IP to stay inside the "server" and not loop with the external IP
You are mostly right.
Containers can expose their local ports to the server local ports.
Also Docker can create an internal LAN between containers.
And Nginx doesnt only redirect to localhost (127.0.0.1), it can redirect to any other IP without problems.
 
Upvote 0
Top