Skip to content

olgac/rabbitmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rabbitmq

H/A RabbitMQ Cluster on Docker Swarm

Commands

wget https://raw.githubusercontent.com/olgac/rabbitmq/master/docker-compose.yml
docker network create --driver=overlay --attachable prod

docker node update --label-add rabbitmq1=true node-1
docker node update --label-add rabbitmq2=true node-2
docker node update --label-add rabbitmq3=true node-3
docker stack deploy -c docker-compose.yml rabbitmq

#docker run -d -p 9000:9000 --name portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer