In a previous post, i explained how to package RabbitMQ and several plugins in a Docker Container, so this will be a followup which shows you how to deploy and configure the RabbitMQ Container on a dokku host.
This Post will not explain how to install Dokku itself – so i assume you have a Dokku environment configured and ready.
Prepare your deployment
The following Dockerfile uses the official RabbitMQ Container and extending it by activating the management and the MQTT plugin. If you don’t need MQTT the you can delete the line RUN rabbitmq-plugins enable --offline rabbitmq_mqtt .
RUN rabbitmq-plugins enable --offline rabbitmq_management
RUN rabbitmq-plugins enable --offline rabbitmq_mqtt
Now create a new directory containing the Dockerfile with the above contents and initialize a git repository.
Then add your dokku server via git remote add dokku email@example.com:myhostname
DO NOT PUSH(!) your changes now, you have to do some configuration first!