Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pardahlman/docker-rabbitmq-cluster
Cluster RabbitMQ (official docker image)
https://github.com/pardahlman/docker-rabbitmq-cluster
clustering docker docker-compose rabbitmq rabbitmq-cluster
Last synced: 19 days ago
JSON representation
Cluster RabbitMQ (official docker image)
- Host: GitHub
- URL: https://github.com/pardahlman/docker-rabbitmq-cluster
- Owner: pardahlman
- Created: 2017-05-24T18:43:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T12:07:52.000Z (over 1 year ago)
- Last Synced: 2025-01-16T13:38:04.777Z (26 days ago)
- Topics: clustering, docker, docker-compose, rabbitmq, rabbitmq-cluster
- Language: Shell
- Size: 4.88 KB
- Stars: 185
- Watchers: 7
- Forks: 77
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cluster RabbitMQ :rabbit:
There are a lots of good options if you want to run a [RabbitMQ](https://hub.docker.com/_/rabbitmq/) cluster in [docker](http://docker.com/). Here's an solution that only rely on [docker official images](https://hub.docker.com/_/rabbitmq/) :tada:
The main benifit with this approach is that you can use [any version](https://hub.docker.com/r/library/rabbitmq/tags/) of RabbitMQ, which is maintaied by docker and will be up-to-date with future releases.
## Install
```
> git clone https://github.com/pardahlman/docker-rabbitmq-cluster.git
> cd docker-rabbitmq-cluster
> docker-compose up
```Most things will be how you expect:
* The default username and password are `guest`/`guest`
* The broker accepts connections on `localhost:5672`
* The Management interface is found at `localhost:15672`## Customize
The `.env` file contains environment variables that can be used to change the default username, password and virtual host.
## HA Proxy
This `docker-compose.yml` file comes with the latest version of [HA Proxy](http://www.haproxy.org/), an open source software that provides a high availability load balancer and proxy server.
It should be fairly easy to add a [`port mapping`](https://docs.docker.com/compose/compose-file/#ports) for the individual containers if it is desired to connect to a specific broker node.
## Read more
I wrote [a blog post](http://fellowdeveloper.se/2017/05/24/cluster-rabbitmq-in-docker/) that explains some of the ideas behind this repo.