This repository contains Dockerfile of RabbitMQ for Docker on CentOS 7.
-
Install Docker.
-
Build an image from Dockerfile:
docker build --rm -t <yourname>/docker-rabbitmq .
docker run -d -p 5672:5672 -p 15672:15672 <yourname>/docker-rabbitmq
docker run -d -p 5672:5672 -p 15672:15672 -e RABBITMQ_ADMIN_USER=<admin username> -e RABBITMQ_ADMIN_PASSWORD=<admin password> <yourname>/docker-rabbitmq
docker run -d -p 5672:5672 -p 15672:15672 -v <log-dir>:/data/log -v <data-dir>:/data/mnesia <yourname>/docker-rabbitmq