Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ There are a lots of good options if you want to run a [RabbitMQ](https://hub.doc

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.

## Linefeed issues with Git on Windows

If you configured your system using CRLF as default, you may change line-endings to LF manually.

When docker tries to mount the file `cluster-entrypoint.sh` into the containers, linux may fail executing this file, resulting in node-1 and node-2 not running.

Here is how you can configure "LF" to be the default in Windows:
```
git config --global core.autocrlf false
git config --global core.eol lf
```

## Install

```
Expand Down
3 changes: 3 additions & 0 deletions cluster-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set -e
# will be honored
/usr/local/bin/docker-entrypoint.sh rabbitmq-server -detached

# Wait a moment until the server was started initially
sleep 5s

# Do the cluster dance
rabbitmqctl stop_app
rabbitmqctl join_cluster rabbit@rabbitmq1
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
version: '3'

services:

rabbitmq1:
image: rabbitmq:3-management
hostname: rabbitmq1
Expand Down