Running the OMS Server Container on a Predefined Port

Since OMS UI requires address and port information of OMS server and because you start the oms server container with no default hard-coded port, in some cases, it might become difficult to update the server information repetitively through the Configuration UI. Due to dynamic port assignment, OMS-server ports might change whenever the server is restarted. To avoid this issue, you can start one of the member's of the OMS server with a pre-defined port and use the same port to configure through the Configurator UI.

Procedure

  • You can start OMS server on a predefined port with either of the following two ways:
    • You can make changes in Docker compose file.

      Open the $AF_HOME/docker/docker-compose-run-oms.yml file with a suitable editor and locate the section with the port defined as 9091 and change it in the following way: <user-specified-port-number>:9091. Here <user-specified-port-number> is the port number which you want OMS server/service to start on. Save the YAML file and now execute the YAML to start the OMS server container as mentioned in GUID-2A7C3CF9-3248-40DB-A2E0-EA7FFC1048F9.html#GUID-2A7C3CF9-3248-40DB-A2E0-EA7FFC1048F9__STEP_945862A78B81453191BA33A04CF0A1C7.

    • You can skip Docker-Compose commands and use Docker commands directly to start the OMS server container on a specific port. Please refer to some of the examples that are mentioned in the $AF_HOME/docker/ReadMe.txt file.
    After starting the OMS server container on a specific port and configuring its address and port in the Configurator, all of OMS UI's requests are routed through this new OMS server.