Adding Environment Variables
There can be some scenarios where you want to add environment variables to a container on startup. This can be done in Docker-Compose files, which you are using to start the containers.
You can add a
NODE_ID environment variable at startup of an Order Management Server docker container. After the NodeFinder library is added to Order Management Server, you are not required to specify the
NODE_ID and
DOMAIN_ID environment variables.
The following code snippet looks like the modified part of the
$OM_HOME/docker/docker-compose-run-oms.yml file:
version: "3" services: tibco-oms: image: "tibco/oms:${FOM_VERSION_TAG}" ports: - "9091" volumes: - "${HOST_LOG_ROOT_LOCATION_DIR_PATH}:/home/tibuser/tibco/om-lr/5.0/omsServer/standalone/logs"
Copyright © 2023. Cloud Software Group, Inc. All Rights Reserved.