rabbitmq
RabbitMQ Overview
Secure your stack with a hardened RabbitMQ image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
RabbitMQ is a messaging and streaming broker that is easy to deploy on cloud environments.
Try It Out
Take the Minimus RabbitMQ image for a test run:
docker run --name minimus_rabbitmq \
-p 5672:5672 --rm \
reg.mini.dev/rabbitmqKeep the terminal window open to see the container's status messages. For example:
## ## RabbitMQ 4.0.8
## ##
########## Copyright (c) 2007-2025 Broadcom Inc and/or its subsidiaries
###### ##
########## Licensed under the MPL 2.0. Website: https://rabbitmq.com
Erlang: 26.2.5.10 [jit]
TLS Library: OpenSSL - OpenSSL 3.5.0 8 Apr 2025
Release series support status: see https://www.rabbitmq.com/release-informationIn another terminal window, run the following to create a user and password and set permissions:
docker exec -it minimus_rabbitmq rabbitmqctl add_user myuser mypassword
docker exec -it minimus_rabbitmq rabbitmqctl set_user_tags myuser administrator
docker exec -it minimus_rabbitmq rabbitmqctl set_permissions -p / myuser ".*" ".*" ".*"Next, save the following Python script as a file named send_message.py:
import pika
credentials = pika.PlainCredentials('Admin', 'Admin')
parameters = pika.ConnectionParameters('localhost', 5672, '/', credentials)
connection = pika.BlockingConnection(parameters)channel = connection.channel()
channel.queue_declare(queue='hello')
channel.basic_publish(exchange='', routing_key='hello', body='Hello Minimus!')
print(" [x] Sent 'Hello Minimus!'")
connection.close()Save the following Python script as a file named receive_message.py:
import pika
def callback(ch, method, properties, body):
print(f" [x] Received: {body.decode()}")
credentials = pika.PlainCredentials('Admin', 'Admin')
parameters = pika.ConnectionParameters('localhost', 5672, '/', credentials)
connection = pika.BlockingConnection(parameters)
channel = connection.channel()
channel.queue_declare(queue='hello')
channel.basic_consume(queue='hello', on_message_callback=callback, auto_ack=True)
print(' [*] Waiting for messages. To exit press CTRL+C')
channel.start_consuming()Create a Python virtual environment and activate it:
python3 -m venv ~/venvs/rabbitmq-test
source ~/venvs/rabbitmq-test/bin/activateYou should see your prompt has changed to something that includes rabbitmq-test.
Now you can continue to install pika in your virtual environment:
pip install pikaIn the same terminal, run the receiver:
python receive_message.pyIt should print:
[*] Waiting for messages. To exit press CTRL+CIn another terminal, activate the virtual environment and run the sender:
source ~/venvs/rabbitmq-test/bin/activate
python send_message.pyFinally now you should see both in the sender and the receiver terminals the following:
[x] Sent 'Hello Minimus!'Technical Considerations
The RabbitMQ image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
RabbitMQ built by Minimus:
- Runs as non-root by default for a security-first approach that protects against privilege escalation attacks. The public image runs as root.
- Listens on but does not expose the default ports: 4369/tcp and 25672/tcp. The public image listens on and exposes ports 4369/tcp, 15692/tcp and 25672/tcp by default.
- The default working directory is
/var/lib/rabbitmq. The public image working directory defaults to the root directory. - The image does not have a default volume. The public image defaults to
/var/lib/rabbitmq. - Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.