This repository contains a Dockerfile and associated scripts for building a RabbmitMQ.
Clone the repository
git clone https://github.com/pitrho/docker-precise-rabbitmq.git
cd docker-precise-rabbitmq
./build
To start the image run:
docker run -d -p 5672:5672 -p 15672:15672 pitrho/rabbitmq
Now you should be able to connect using a RabbitMQ client.
Also, the web interface is also exposed at port 15672.
By default, ports 5672 and 15672 are exposed from the container.
To override the default user and password, simply pass environment variables RABBITMQ_USER and RABBITMQ_PASSWORD
docker run -d -e RABBITMQ_USER=new_user -e RABBITMQ_PASSWORD=new_password pitrho/rabbitmq
To override the configuration file, simply mount the new file to /etc/rabbitmq/rabbitmq.config
docker run -d -v /host/rabbitmq.config:/etc/rabbitmq/rabbitmq.config
MIT. See the LICENSE file.