Redirect to Host Port¶
To redirect your app to the specific port, you can provide a list of ports in the docker-compose file which need to be exposed for your app containers. Either specify both ports (HOST: CONTAINER) or just the container port (an ephemeral host port is chosen). By using the IE App Publisher, you can choose one from the given ports which shall be used for redirecting the app.
The following example shows a nginx app provided as docker-compose file which exposes 2 ports:
You can choose 1 port from the given list in the docker-compose file using the IE App Publisher UI.
Using the IE App Publisher UI¶
Select 1 port from the given list which shall be used for redirection, for example:
In this example, selecting port 80 will redirect your app to some random port as the host port is not given. Host ports can be given in the range of 32768 - 60999. If the host port is not defined, the app will only redirect, if the developer mode is enabled on the Edge Device. Selecting port 443 will redirect to the host port provided in the docker-compose definition.