Configuring MongoDB 'permission' Credentials
The MongoDB permission credentials are defined in the infrastructure Docker descriptor. They are used to manage permissions.
To Configure MongoDB 'permission' Credentials
-
Edit
deployment/docker/infra/docker-compose.ymland change theMONGODB_PERMISSION_PASSWORDenvironment variable.mongo: ... environment: - MONGODB_PERMISSION_DATABASE=permission-db - MONGODB_PERMISSION_USER=permission - MONGODB_PERMISSION_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_PERMISSION_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_PERMISSION_MONGODB_PASSWORDfor thebackend-service, thedata-service, theexecution-service, and thescenario-service.backend-service: ... environment: - SERVICES_PERMISSION_MONGODB_HOST=mongo - SERVICES_PERMISSION_MONGODB_PASSWORD # Not specifying a value allow to transmit environment variable to the container. data-service: ... environment: - SERVICES_PERMISSION_MONGODB_HOST=mongo - SERVICES_PERMISSION_MONGODB_PASSWORD # Not specifying a value allow to transmit environment variable to the container. execution-service: ... environment: - SERVICES_PERMISSION_MONGODB_HOST=mongo - SERVICES_PERMISSION_MONGODB_PASSWORD # Not specifying a value allow to transmit environment variable to the container. scenario-service: ... environment: - SERVICES_PERMISSION_MONGODB_HOST=mongo - SERVICES_PERMISSION_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_PERMISSION_MONGODB_PASSWORDwith the password you have chosen. Note that you can also add the environment variable to the host machine.