This repository contains a Dockerfile for building a custom RabbitMQ image with additional plugins enabled. The RabbitMQ image includes the following plugins:
- RabbitMQ Management
- RabbitMQ STOMP
- RabbitMQ Web STOMP
FROM rabbitmq:3.11
RUN rabbitmq-plugins enable --offline rabbitmq_management
RUN rabbitmq-plugins enable --offline rabbitmq_stomp
RUN rabbitmq-plugins enable --offline rabbitmq_web_stomp
EXPOSE 15671 15672 15674 61613
- Docker installed on your machine.
To build the Docker image, run the following command in the directory containing the Dockerfile:
docker build -t custom-rabbitmq:3.11 .
To run a container from the built image, use the following command:
docker run -d --name rabbitmq -p 15671:15671 -p 15672:15672 -p 15674:15674 -p 61613:61613 custom-rabbitmq:3.11
-
Management UI: You can access the RabbitMQ Management UI at
http://localhost:15672
. The default username and password areguest
andguest
. -
STOMP: The RabbitMQ STOMP plugin is accessible on port
61613
. -
Web STOMP: The RabbitMQ Web STOMP plugin is accessible on port
15674
.
The RabbitMQ Management plugin provides an HTTP-based API for management and monitoring of RabbitMQ. It also provides a browser-based UI for management and monitoring.
The RabbitMQ STOMP plugin enables the STOMP protocol in RabbitMQ. STOMP is a simple text-orientated messaging protocol.
The RabbitMQ Web STOMP plugin provides a WebSockets to STOMP gateway. This allows STOMP clients to communicate with RabbitMQ over WebSockets.
The following ports are exposed in the Dockerfile:
15671
: AMQP-over-SSL (Not used by default)15672
: HTTP API / Management UI15674
: STOMP-over-WebSockets61613
: STOMP
You can customize the Dockerfile to include other RabbitMQ plugins or configurations as needed. For more information on RabbitMQ and its plugins, visit the official RabbitMQ documentation.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.