Set Up RabbitMQ External Connection
Note
Make sure that the version of the external service matches the version specified in the docker-compose.yml
file.
Set up the following parameters for RabbitMQ in the
.env
file. In the example, the parameters are set as default.RABBITMQ_DEFAULT_USER=testgear RABBITMQ_DEFAULT_PASS=F1rstL0g0N! RABBITMQ_DEFAULT_VHOST=testgearrabbit RABBITMQ_DEFAULT_HOST=external-server (where external-server is the ip address or the DNS server name of your RabbitMQ server) RABBITMQ_DEFAULT_PORT=5672 RABBITMQ_AUTH_MODE=plain RABBITMQ_CLIENT_CERT_PATH=/etc/rabbitmq/ssl/client/testgear.pfx #RABBITMQ_CLIENT_CERT_PASSPHRASE=
In the
docker-compose.yml
file, comment or delete the section with the service (rabbitmq
) you want to replace with an external one. Comment or delete all dependencies on other containers (all instances of the service in the sectiondepends_on
), and the volume of the service (rabbit-volume
,rabbitmq-configuration-volume
, andrabbitmq-certificates-volume
) in thevolumes
list.Reinstall TestGear:
docker-compose -f docker-compose.yml --project-name prod up --detach --timeout 120 --remove-orphans