RabbitMq-setup-in-local¶
Docker Compose (preferred way)¶
In bank-cicd there's a docker-compose.yml with config of both RabbitMQ and Sql Server. Using this is the easiest and preferred way to get both SQL Server and RabbitMQ running locally with good default settings.
Given you have cloned and pulled the latest bank-cicd, you run docker compose like this:
$ [path-to-bank-cicd]> docker compose up -d
Only RabbitMQ¶
Assuming we already have Rancher desktop in our local. We can run these commands which will install RabbitMq in local.
docker pull rabbitmq:3-management
1) docker run --rm -d -p 15672:15672 -p 5672:5672 --name my-rabbitmq rabbitmq:3-management
OR
2) docker run --rm -d -p 15672:15672 -p 5672:5672 --name my-rabbitmq -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq:3-management
Then we might need to change username and password in secrets to default one if using first approach else with second approach it will set correct credentials.