B4J Question Dockers and JServer apps

Magma

Expert
Licensed User
Longtime User
I am thinking creating something like my own docker for jserver apps. I saw this thread https://www.b4x.com/android/forum/t...n-linux-docker-container.170250/#post-1042334

Probably will be a jserver app too... but i wanna ask how will manage the ports and if is possible to have same ports somehow or need to change from server-app to server-app...

The real question is more debian/ubuntu question how can multiple ips and possible.. and if anyone did something like this?

In jserver is it possible to set the ip will use ? or better is it possible to set domain have the same ip (like apache is doing)?
 

hatzisn

Expert
Licensed User
Longtime User
All you need is some docker knowledge and a Dockerfile . Check my signature in "my contributions" in B4J tutorials to get a grip of how this is done. Please note also that I wrote this tutorial when I was learning docker and cybersecurity-wise is way far behind best practices on the matter. In docker you can map ports but if you only use http/https protocol you can use a reverse proxy to divert traffic directly inside the container.
 
Upvote 0
Top