Software AG Products 10.7 | Configuring API Gateway | Docker Configuration | Load Balancer Configuration with the Docker Host
 
Load Balancer Configuration with the Docker Host
A port mapping is specified when you run the Docker container. For example, to map the IS port to the port 5858 on the Docker host, run the Docker image with the following command:
docker run -d -p 5858:5555 -p 9073:9072 --name apigw is:apigw
The host and the port within the Docker container are different from the host running the Docker container and the port exposed on the host. As a result, the gateway endpoints exposed by API Gateway are set incorrectly. To set this right you have to set up a load balancer configuration with the Docker host and the mapped ports.
For the above example, the following load balancer URLs are required:
*Load balancer URL (HTTP): http://dockerhost:5858
*Load balancer URL (WS): ws://dockerhost:5858
*Web application load balancer URL: http://dockerhost:9073
Note:
If the API Gateway UI port is mapped to a different port on the Docker host, the API Gateway solution link in the IS Administration UI does not work.