This will allow a user to run Mass Transit with consumers and sagas on a RabbitMQ Cluster with a Mongo DB Backend for persisting the Sagas. This will all use Docker containers.
- Clone the repo
- Follow the steps here to create a Docker RabbitMQ Cluster RabbitMQ Docker Cluster Steps
- Follow the steps here to install/run Docker MongoDB Container MongoDB Docker Steps
- Open a terminal
- Navigate to the same directory that this
README
resides in - Run the following command to build the image with the tag of
servicebus
docker build -t servicebus .
- Run the following command to start the service bus with the name of
servicebus1
docker run -d --name servicebus1 servicebus
- Run the following to see the logs
docker logs servicebus1 --follow
- In order to stop it and remove the containers run the following
docker stop servicebus1 docker rm servicebus1 cd MongoDB docker-compose -f mongo-compose.yml down docker stop rabbit2 docker stop rabbit1 docker rm rabbit2 docker rm rabbit1 docker network rm mynetwork