Member-only story

Building a OpenShift Ready RabbitMQ Docker Image: A Step-by-Step Guide for Scalable Messaging

Alessandro
DevOps.dev
Published in
5 min readFeb 26, 2025

We are going to blaze through a quick tutorial for creating a RabbitMQ server with Docker and deploying it to OpenShift. Why? Well message brokers are widely used when we are developing Systems with modules communicating with each other (e.g. an Unreal simulation communicating with a Python probabilistic agent and a Delphi tool for visualizing data… where all applications do not have to live in the same machine).

First things to do will be to create a folder for the project, in my case I named it “openshiftv2”. Then create a YAML file and name it “docker-compose.yml”, and a folder named “rabbitmq” with a “Dockerfile” in it. The image below shows the folder structure.

Open the “Dockerfile” and we are going to use the official RabbitMQ image for our container, set our user and password variables (in this case we are using for the username utest and for the password test1234). Then, we will add a label to the version and a description. We are going to add two plugins with the RUN commands:

  1. rabbitmq_mqtt, to enable MQTT communication
  2. rabbitmq_management, to enable a web based management UI

to enable the MQTT plugin for RabbitMQ (in my case we needed Unreal to communicate with a Python

--

--

Published in DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.

Written by Alessandro

Full mobile stack developer, researcher, simulation software developer, and parent.

No responses yet

Write a response