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 a OMS docker container. After the NodeFinder library is added to OMS server, you are not required to specify the NODE_ID and DOMAIN_ID environment variables.
  1. In case you want to specify these environment variables on a container startup, add environment variables to the $AF_HOME/docker/docker-compose-run-oms.yml file:
    "NODE_ID=Member1"
    "DOMAIN_ID=ORCH-DOMAIN"
The following code snippet will look like the modified part of the $AF_HOME/docker/docker-compose-run-oms.yml file:
version: "3"

services:
	tibco-fom-oms:
		image: "tibco/fom-oms:${FOM_VERSION_TAG}"
		ports:
			- "9091"
		volumes:
			- "${HOST_LOG_ROOT_LOCATION_DIR_PATH}:/home/tibuser/tibco/4.0/omsServer/standalone/logs"
		environment:
			- "NODE ID=Member1"
			- "DOMAIN_ID=ORCH-DOMAIN"