If you encounter any issues running the steps below, try the troubleshooting section or ask on our forum.
-
Open a terminal and run the following command to shut down the showcase containers:
docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env down
All of the containers should be shown as
Removedand there should no longer be any containers running underparticular-platform-showcasein docker. -
Open
src/rabbit.envfile, located in the folder that the showcase is cloned to, in an editor and update the RabbitMQ configuration to point to your own RabbitMQ instance.CONNECTION_STRINGA special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format. NOTE: if your RabbitMQ instance is hosted locally in docker, your connection string will behost=host.docker.internal;port=<external_docker_port_for_5672>RABBITMQ_MANAGEMENT_API_URLThe management API URL. NOTE: as above, if hosted locally in docker this will behttp://host.docker.internal:<external_docker_port_for_15672>RABBITMQ_MANAGEMENT_API_USERNAMEThe management API username.RABBITMQ_MANAGEMENT_API_PASSWORDThe management API password.
-
To validate that the broker can be reached, run the following command:
docker run --env-file rabbit.env --rm particular/servicecontrol-masstransit-connector:latest health-check
-
Update the list of queues you want to monitor by editing the
src/queues.txtfile, also located in the folder that the showcase is cloned to. RabbitMQ is case-sensitive so make sure the names are exact. e.g.myqueue_error. To automate this task you can run the following CLI command:docker run --env-file rabbit.env --rm particular/servicecontrol-masstransit-connector:latest queues-list
The command above will output a list of queues, that can be copy-paste into the
src/queues.txt. Please ensure you review this list. -
Run the following command to start the required containers with the updated environment settings:
docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up -d
ServiceControl should show a status of
Healthy.Docker should now show a
particular-platformcontainer group. -
Verify that the setup was correct by navigating to http://localhost:9090/#/configuration/mass-transit-connector.
- All of the configured queues for your system should show here.
- For each row in the list of queues: if the queues exist, the status should be green. If the queues don't exist, i.e. there have never been any errors on that consumer, or if there is an issue connecting to the broker then the status will be red.
- If the status is red, the reason for this can be found in the log entries shown below the queue list.
- Any messages that existed in the error queues should now have been ingested, and will be shown in Failed Messages.


