Skip to content

Instantly share code, notes, and snippets.

@yetanotherchris
Last active April 29, 2023 07:10
Show Gist options
  • Save yetanotherchris/c954d1e8b688845c2dcdb3b33c94b2d2 to your computer and use it in GitHub Desktop.
Save yetanotherchris/c954d1e8b688845c2dcdb3b33c94b2d2 to your computer and use it in GitHub Desktop.
RabbitMQ on Docker with admin UI
# AWS specific install of Docker
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# exit the SSH session, login again
# Docker
docker run -d --hostname my-rabbit --name some-rabbit -p 4369:4369 -p 5671:5671 -p 5672:5672 -p 15672:15672 rabbitmq
docker exec some-rabbit rabbitmq-plugins enable rabbitmq_management
# Login at http://localhost:15672/ (or the IP of your docker host)
# using guest/guest
@ypereirareis
Copy link

Hi !
Thx for this 😃

I built a project allowing to run a highly available RabbitMQ cluster with HAProxy:

  • Persistent queues, exchanges and messages.
  • Mirrored queues, exchanges and messages.
  • Node failures experiment.
  • Network partition experiment.

You can find it there: https://github.com/ypereirareis/docker-rabbitmq-ha-cluster

Bye !

@gustavorglima
Copy link

Thanks man!

@alexandze
Copy link

Thank man

@krishnaprasadaccot
Copy link

Great! Thank you!

@RafaNetow
Copy link

Thanks man , you save my day

@mldisibio
Copy link

Five years later and this was helpful. Running the masstransit/rabbitmq image from docker-compose and even though it's based on 3-managment-alpine, for some reason the management plugin is not enabled.
FYI to future readers, the same docker exec command listed above can simply follow a docker-compose up command in a simple script file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment