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

  1. Edit deployment/docker/infra/docker-compose.yml and add/change the RABBITMQ_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.
  2. Edit the .env file placed in the docker-compose.yml parent folder and add an environment variable RABBITMQ_DEFAULT_PASS with the password you have chosen. Note that you can also add the environment variable to the host machine.

  3. 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.
  4. Edit the .env file placed in the docker-compose.yml parent folder and add an environment variable RABBIT_PASSWORD with the password you have chosen. Note that you can also add the environment variable to the host machine.

  5. Edit RabbitMQ password for dbos-master service in deployment/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.
  6. Edit the .env file placed in the docker-compose.yml parent folder and add an environment variable SPRING_RABBITMQ_PASSWORD with the password you have chosen. Note that you can also add the environment variable to the host machine.

  7. 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.
  8. Edit the .env file placed in the docker-compose.yml parent folder and add an environment variable SPRING_RABBITMQ_PASSWORD with the password you have chosen. Note that you can also add the environment variable to the host machine.

  9. 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.
  10. Edit RabbitMQ password for the python-wml-worker service in deployment/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.