Configuring MongoDB 'execution' Credentials
The MongoDB execution credentials are defined in the infrastructure Docker descriptor. They are used by the Execution Service.
To Configure MongoDB 'execution' Credentials
-
Edit
deployment/docker/infra/docker-compose.ymland change theMONGODB_EXECUTION_PASSWORDenvironment variable.mongo: ... environment: - MONGODB_EXECUTION_DATABASE=execution-db - MONGODB_EXECUTION_USER=execution - MONGODB_EXECUTION_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_EXECUTION_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 variableSPRING_DATA_MONGODB_PASSWORDfor theexecution-service.execution-service: ... environment: - SPRING_DATA_MONGODB_HOST=mongo - SPRING_DATA_MONGODB_PASSWORD=CHANGE_ME # <= Your new password