Configuring RabbitMQ Credentials
The RabbitMQ default
credentials are defined in the infrastructure Docker descriptor. It allows connecting the application components and requires updating the password for each of them.
To Configure RabbitMQ 'admin' Credentials
-
Edit
deployment/docker/infra/docker-compose.yml
and add/change theRABBITMQ_DEFAULT_PASS
environment variable.rabbitmq: image: ${DOCKER_PULL_REGISTRY}/infra/rabbitmq:4.0.2-management container_name: gene-sample-rabbitmq environment: - RABBITMQ_DEFAULT_PASS # Not specifying a value allow to transmit environment variable to the container.
-
Edit the
.env
file placed in thedocker-compose.yml
parent folder and add an environment variableRABBITMQ_DEFAULT_PASS
with the password you have chosen. Note that you can also add the environment variable to the host machine. -
Edit RabbitMQ password for Keycloak service in
deployment/docker/infra/docker-compose.yml
.keycloak: ... environment: - RABBIT_USERNAME=guest - RABBIT_PASSWORD # Not specifying a value allow to transmit environment variable to the container.
-
Edit the
.env
file placed in thedocker-compose.yml
parent folder and add an environment variableRABBIT_PASSWORD
with the password you have chosen. Note that you can also add the environment variable to the host machine. -
Edit RabbitMQ password for
dbos-master
service indeployment/docker/dbos/docker-compose.yml
.dbos-master: ... environment: - SPRING_RABBITMQ_USERNAME=guest - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container.
-
Edit the
.env
file placed in thedocker-compose.yml
parent folder and add an environment variableSPRING_RABBITMQ_PASSWORD
with the password you have chosen. Note that you can also add the environment variable to the host machine. -
Edit RabbitMQ password for the following services in
deployment/docker/app/docker-compose.yml
.backend-service: ... environment: - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container. data-service: ... environment: - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container. execution-service: ... environment: - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container. scenario-service: ... environment: - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container.
-
Edit the
.env
file placed in thedocker-compose.yml
parent folder and add an environment variableSPRING_RABBITMQ_PASSWORD
with the password you have chosen. Note that you can also add the environment variable to the host machine. -
Edit RabbitMQ password for the following services in
deployment/docker/app/docker-compose-workers.yml
.checker-worker: ... environment: - SPRING_RABBITMQ_USERNAME=guest - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container. engine-worker: ... environment: - SPRING_RABBITMQ_USERNAME=guest - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container. python-engine-worker: ... environment: - SPRING_RABBITMQ_USERNAME=guest - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container.
-
Edit RabbitMQ password for the
python-wml-worker
service indeployment/docker/app/docker-compose-wml-worker.yml
.python-wml-worker: ... environment: - SPRING_RABBITMQ_USERNAME=guest - SPRING_RABBITMQ_PASSWORD # Not specifying a value allow to transmit environment variable to the container.