-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6970 from Particular/mt_cleanup
menu and content tweaks
- Loading branch information
Showing
4 changed files
with
20 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,84 +1,27 @@ | ||
--- | ||
title: MassTransit Connector Docker Deployment | ||
title: Deploying MassTransit Connector | ||
summary: Configuring and running the MassTransit Connector and the rest of the Particular Platform | ||
reviewed: 2024-12-02 | ||
component: ServiceControl | ||
--- | ||
|
||
## Overview | ||
|
||
When MassTransit is used with the rest of the platform, there are in total 4 containers that get deployed: | ||
When MassTransit is used with the rest of the platform, there are in total 4 containers that need to be deployed: | ||
|
||
1. [particular/servicecontrol](https://hub.docker.com/r/particular/servicecontrol) | ||
1. [particular/servicecontrol-ravendb](https://hub.docker.com/r/particular/servicecontrol-ravendb) | ||
1. [particular/servicecontrol-masstransit-connector](https://hub.docker.com/r/particular/servicecontrol-masstransit-connector) | ||
1. [particular/servicepulse](https://hub.docker.com/r/particular/servicepulse) | ||
|
||
The `particular/servicecontrol` and `particular/servicecontrol-ravendb` containers are used to ingest messages from the `error` queue. The `particular/servicecontrol-masstransit-connector` container reads messages from the MassTransit system's error queues and moves them into the `error` queue to be ingested by ServiceControl. The `particular/servicepulse` container exposes a web interface to allow users to retry failed messages back to the MassTransit system. | ||
The `particular/servicecontrol` and `particular/servicecontrol-ravendb` containers are used to ingest messages from the `error` queue. | ||
|
||
## Docker Compose | ||
The `particular/servicecontrol-masstransit-connector` container reads messages from the MassTransit system's error queues and moves them into the `error` queue to be ingested by ServiceControl. | ||
|
||
> [!NOTE] | ||
> Depending on the transport, a corresponding block in the `environment` section of the file needs to be uncommented and connection information provided. The RabbitMQ section is uncommented by way of example. | ||
The `particular/servicepulse` container exposes a web interface to allow users to retry failed messages back to the MassTransit system. | ||
|
||
```dockerfile | ||
name: particular-platform-masstransit-recoverability | ||
x-transport: &transport-env | ||
environment: | ||
RAVENDB_CONNECTIONSTRING: "http://servicecontrol-db:8080" | ||
ALLOWMESSAGEEDITING: true | ||
SHOW_PENDING_RETRY: true | ||
|
||
#[RabbitMQ] | ||
TRANSPORTTYPE: "RabbitMQ.QuorumConventionalRouting" | ||
CONNECTIONSTRING: "host=host.docker.internal" | ||
MANAGEMENTAPI: "http://guest:guest@host.docker.internal:15672" | ||
## Getting started | ||
|
||
#[AzureServiceBus] | ||
#TRANSPORTTYPE: "NetStandardAzureServiceBus" | ||
#CONNECTIONSTRING: "<connection-string>" | ||
The first step is to configure and deploy the `particular/servicecontrol` image, to do this follow [this deployment guide](/servicecontrol/servicecontrol-instances/deployment/containers.md). | ||
|
||
#[Amazon SQS] | ||
#TRANSPORTTYPE: "AmazonSQS" | ||
#AWS_REGION: "<region>" | ||
#AWS_ACCESS_KEY_ID: "<access-key>" | ||
#AWS_SECRET_ACCESS_KEY: "<secret-access-key>" | ||
#CONNECTIONSTRING: "Region=$AWS_REGION;AccessKeyId=$AWS_ACCESS_KEY_ID;SecretAccessKey=$AWS_SECRET_ACCESS_KEY" | ||
|
||
services: | ||
service-control-db: | ||
container_name: servicecontrol-db | ||
image: particular/servicecontrol-ravendb:6 | ||
volumes: | ||
- sc-data:/var/lib/ravendb/data | ||
service-control: | ||
depends_on: | ||
service-control-db: | ||
condition: service_healthy | ||
container_name: servicecontrol | ||
image: particular/servicecontrol:6 | ||
command: "--setup-and-run" | ||
ports: | ||
- 33333:33333 | ||
<< : [*transport-env] | ||
masstransit-connector: | ||
container_name: masstransit-connector | ||
image: particular/servicecontrol-connector-masstransit:latest | ||
command: "--setup-and-run" | ||
<< : [*transport-env] | ||
service-pulse: | ||
depends_on: | ||
- service-control | ||
container_name: servicepulse | ||
image: particular/servicepulse:latest | ||
ports: | ||
- 9090:9090 | ||
environment: | ||
- SERVICECONTROL_URL=http://localhost:33333/api/ | ||
- ENABLE_REVERSE_PROXY=false | ||
- SHOW_PENDING_RETRY=true | ||
- ALLOW_MESSAGE_EDITING=true | ||
|
||
volumes: | ||
sc-data: | ||
``` | ||
After that, follow the instructions in Docker Hub on [How to use this image](https://hub.docker.com/r/particular/servicecontrol-masstransit-connector). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters