|
1 | 1 | # Running with your own RabbitMQ system
|
2 | 2 |
|
3 |
| -1. Open the `src/rabbit.env` file in an editor and update the RabbitMQ configuration to point to your own RabbitMQ instance. |
4 |
| - 1. `CONNECTION_STRING` A special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format. |
5 |
| - 2. `RABBITMQ_MANAGEMENT_API_URL` The management API URL. |
6 |
| - 3. `RABBITMQ_MANAGEMENT_API_USERNAME` The management API username. |
7 |
| - 4. `RABBITMQ_MANAGEMENT_API_PASSWORD` The management API password. |
8 |
| -2. Update the list of queues you want to monitor by editing the `src/queues.txt` file. RabbitMQ is case-sensitive so make sure the names are exact. e.g. `myqueue_error`. |
9 |
| -3. Open a terminal and run these commands: |
10 |
| - |
11 |
| -```cmd |
12 |
| -docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env down |
13 |
| -docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up |
14 |
| -``` |
| 3 | +1. Open a terminal and run the following command to shut down the showcase containers: |
| 4 | + |
| 5 | + ```cmd |
| 6 | + docker compose -p particular-platform-showcase -f docker-compose-base.yml -f compose-rabbitmq.yml --env-file rabbit.env down |
| 7 | + ``` |
| 8 | + |
| 9 | + - All of the containers should be shown as `Stopped` and there should no longer be any containers running under `particular-platform-showcase` in docker |
| 10 | + |
| 11 | +1. Open `src/rabbit.env` file, 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. |
| 12 | + - `CONNECTION_STRING` A special connection string to connect to RabbitMQ, see https://docs.particular.net/servicecontrol/transports#rabbitmq for syntax format. |
| 13 | + - `RABBITMQ_MANAGEMENT_API_URL` The management API URL. |
| 14 | + - `RABBITMQ_MANAGEMENT_API_USERNAME` The management API username. |
| 15 | + - `RABBITMQ_MANAGEMENT_API_PASSWORD` The management API password. |
| 16 | +1. Update the list of queues you want to monitor by editing the `src/queues.txt` file, 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`. |
| 17 | +1. Run the following command to start the required containers with the updated environment settings: |
| 18 | + |
| 19 | + ```cmd |
| 20 | + docker compose -p particular-platform -f docker-compose-base.yml -f compose-rabbitmq-user.yml --env-file rabbit.env --profile infrastructure up |
| 21 | + ``` |
| 22 | + |
| 23 | + - The containers should all show a status of `Healthy` |
| 24 | + |
| 25 | +## Troubleshooting |
| 26 | + |
| 27 | +- |
| 28 | +- |
| 29 | +- If you encounter any other issues, ask on [our forum](https://discuss.particular.net/tag/masstransit) |
0 commit comments