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 .
1 2 3 4 5 6 |
FROM rabbitmq RUN rabbitmq-plugins enable --offline rabbitmq_management RUN rabbitmq-plugins enable --offline rabbitmq_mqtt EXPOSE 15672 |
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 dokku@myserver.com:myhostname
DO NOT PUSH(!) your changes now, you have to do some configuration first!