Configuring MongoDB 'session-tracking' Credentials
The MongoDB session-tracking credentials are defined in the infrastructure Docker descriptor. They are used by to monitor the application activity.
To Configure MongoDB 'session-tracking' Credentials
-
Edit
deployment/docker/infra/docker-compose.ymland change theMONGODB_SESSION_TRACKING_PASSWORDenvironment variable.mongo: ... environment: - MONGODB_SESSION_TRACKING_DATABASE=session-tracking-db - MONGODB_SESSION_TRACKING_USER=session-tracking - MONGODB_SESSION_TRACKING_PASSWORD # Not specifying a value allow to transmit environment variable to the container. -
Edit the
.envfile placed in thedocker-compose.ymlparent folder and add an environment variableMONGODB_SESSION_TRACKING_PASSWORDwith the password you have chosen. Note that you can also add the environment variable to the host machine. -
Edit
deployment/docker/app/docker-compose.ymland add a variableSERVICES_SESSIONTRACKING_MONGODB_PASSWORDfor thescenario-service.scenario-service: ... environment: - SERVICES_SESSIONTRACKING_MONGODB_HOST=mongo - SERVICES_SESSIONTRACKING_MONGODB_PASSWORD # Not specifying a value allow to transmit environment variable to the container. -
Edit the
.envfile placed in thedocker-compose.ymlparent folder and add an environment variableSERVICES_SESSIONTRACKING_MONGODB_PASSWORDwith the password you have chosen. Note that you can also add the environment variable to the host machine.