Description

RabbitMQ is an open-source message-broker software that originally implemented the Advanced Message Queuing Protocol and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol, MQ Telemetry Transport, and other protocols.

Examples

Dependency:
<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>rabbitmq</artifactId>
    <version>1.20.0</version>
    <scope>test</scope>
</dependency>
Usage:
var rabbit = new RabbitMQContainer(DockerImageName.parse("rabbitmq:3.7.25-management-alpine"));
rabbit.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/rabbitmq
Usage:
rabbitmqContainer, err := rabbitmq.Run(ctx, "rabbitmq:3.7.25-management-alpine")
Dependency:
dotnet add package Testcontainers.RabbitMq --version 3.9.0
Usage:
var rabbitMqContainer = new RabbitMqBuilder()
  .WithImage("rabbitmq:3.11")
  .Build();
await rabbitMqContainer.StartAsync();
Dependency:
npm install @testcontainers/rabbitmq --save-dev
Usage:
const container = await new RabbitMQContainer().start();
Dependency:
pip install testcontainers[rabbitmq]
Usage:
with RabbitMqContainer("rabbitmq:3.9.10") as rabbitmq:
    connection = pika.BlockingConnection(rabbitmq.get_connection_params())