Configuring MongoDB 'optimserver' Credentials
The MongoDB optimserver credentials are defined in the infrastructure Docker descriptor. They are used by the Optimization server master.
To Configure MongoDB 'optimserver' Credentials
-
Edit
deployment/docker/infra/docker-compose.ymland change theMONGODB_DBOS_PASSWORDenvironment variable.mongo: ... environment: - MONGODB_DBOS_DATABASE=optimserver-master-db - MONGODB_DBOS_USER=optimserver - MONGODB_DBOS_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_DBOS_PASSWORDwith the password you have chosen. Note that you can also add the environment variable to the host machine. -
Edit
deployment/docker/dbos/docker-compose.ymland change theMONGODB_DBOS_PASSWORDenvironment variable.dbos-master: ... environment: - SPRING_DATA_MONGODB_USERNAME=optimserver - SPRING_DATA_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 variableSPRING_DATA_MONGODB_PASSWORDwith the password you have chosen. Note that you can also add the environment variable to the host machine.