Skip to content

Commit fed3341

Browse files
authored
Rabbit Outbox sample review (#6830)
1 parent 183b4b8 commit fed3341

File tree

4 files changed

+38
-50
lines changed

4 files changed

+38
-50
lines changed
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
version: '3'
1+
name: outbox
22
services:
3-
rabbit1:
4-
image: "rabbitmq:3-management"
5-
hostname: "rabbit1"
3+
rabbit:
4+
image: rabbitmq:3-management
65
environment:
7-
RABBITMQ_DEFAULT_USER: "rabbitmq"
8-
RABBITMQ_DEFAULT_PASS: "rabbitmq"
9-
RABBITMQ_DEFAULT_VHOST: "/"
6+
RABBITMQ_DEFAULT_USER: rabbitmq
7+
RABBITMQ_DEFAULT_PASS: rabbitmq
8+
RABBITMQ_DEFAULT_VHOST: /
109
ports:
1110
- "15672:15672"
1211
- "5672:5672"
13-
labels:
14-
NAME: "rabbitmq1"
15-
sql1:
16-
image: "mcr.microsoft.com/mssql/server"
17-
hostname: "sql1"
12+
sql:
13+
image: mcr.microsoft.com/mssql/server
1814
environment:
19-
ACCEPT_EULA: "Y"
20-
MSSQL_PID: "Express"
21-
SA_PASSWORD: "NServiceBus!"
15+
ACCEPT_EULA: Y
16+
MSSQL_PID: Express
17+
SA_PASSWORD: NServiceBus!
2218
ports:
2319
- "11433:1433"
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
version: '3'
1+
name: outbox
22
services:
3-
rabbit1:
4-
image: "rabbitmq:3-management"
5-
hostname: "rabbit1"
3+
rabbit:
4+
image: rabbitmq:3-management
65
environment:
7-
RABBITMQ_DEFAULT_USER: "rabbitmq"
8-
RABBITMQ_DEFAULT_PASS: "rabbitmq"
9-
RABBITMQ_DEFAULT_VHOST: "/"
6+
RABBITMQ_DEFAULT_USER: rabbitmq
7+
RABBITMQ_DEFAULT_PASS: rabbitmq
8+
RABBITMQ_DEFAULT_VHOST: /
109
ports:
1110
- "15672:15672"
1211
- "5672:5672"
13-
labels:
14-
NAME: "rabbitmq1"
15-
sql1:
16-
image: "mcr.microsoft.com/mssql/server"
17-
hostname: "sql1"
12+
sql:
13+
image: mcr.microsoft.com/mssql/server
1814
environment:
19-
ACCEPT_EULA: "Y"
20-
MSSQL_PID: "Express"
21-
SA_PASSWORD: "NServiceBus!"
15+
ACCEPT_EULA: Y
16+
MSSQL_PID: Express
17+
SA_PASSWORD: NServiceBus!
2218
ports:
2319
- "11433:1433"
Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
1-
version: '3'
1+
name: outbox
22
services:
3-
rabbit1:
4-
image: "rabbitmq:3-management"
5-
hostname: "rabbit1"
3+
rabbit:
4+
image: rabbitmq:3-management
65
environment:
7-
RABBITMQ_DEFAULT_USER: "rabbitmq"
8-
RABBITMQ_DEFAULT_PASS: "rabbitmq"
9-
RABBITMQ_DEFAULT_VHOST: "/"
6+
RABBITMQ_DEFAULT_USER: rabbitmq
7+
RABBITMQ_DEFAULT_PASS: rabbitmq
8+
RABBITMQ_DEFAULT_VHOST: /
109
ports:
1110
- "15672:15672"
1211
- "5672:5672"
13-
labels:
14-
NAME: "rabbitmq1"
15-
sql1:
16-
image: "mcr.microsoft.com/mssql/server"
17-
hostname: "sql1"
12+
sql:
13+
image: mcr.microsoft.com/mssql/server
1814
environment:
19-
ACCEPT_EULA: "Y"
20-
MSSQL_PID: "Express"
21-
SA_PASSWORD: "NServiceBus!"
15+
ACCEPT_EULA: Y
16+
MSSQL_PID: Express
17+
SA_PASSWORD: NServiceBus!
2218
ports:
2319
- "11433:1433"

samples/outbox/rabbit/sample.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Using Outbox with RabbitMQ
33
summary: Demonstrates how the Outbox handles duplicate messages using RabbitMQ and SQL Server hosted in Docker containers.
4-
reviewed: 2021-09-21
4+
reviewed: 2024-09-10
55
component: Core
66
related:
77
- transports/rabbitmq
@@ -21,8 +21,8 @@ downloadbutton
2121
3. If running Docker on Windows, [set Docker to use Linux containers](https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers).
2222
4. In the sample directory, execute the following to set up the RabbitMQ and SQL Server instances:
2323

24-
```dos
25-
> docker-compose up --detach
24+
```shell
25+
> docker compose up --detach
2626
```
2727

2828
Once complete, the RabbitMQ administration can be reached via [http://localhost:15672/](http://localhost:15672/) with username `rabbitmq` and password `rabbitmq`.
@@ -168,6 +168,6 @@ The message handler:
168168

169169
Once finished with the sample, the RabbitMQ and SQL Server instances can be cleaned up using:
170170

171-
```dos
172-
> docker-compose down
171+
```shell
172+
> docker compose down
173173
```

0 commit comments

Comments
 (0)