File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
1
RABBITMQ_DEFAULT_USER = guest
2
2
RABBITMQ_DEFAULT_PASS = guest
3
- RABBITMQ_DEFAULT_VHOST = /
3
+ RABBITMQ_DEFAULT_VHOST = /
4
+ RABBITMQ_ERLANG_COOKIE = 12345
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- # Change .erlang.cookie permission
6
- chmod 400 /var/lib/rabbitmq/.erlang.cookie
7
-
8
5
# Get hostname from enviromant variable
9
6
HOSTNAME=` env hostname`
10
7
echo " Starting RabbitMQ Server For host: " $HOSTNAME
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ services:
7
7
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
8
8
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
9
9
- RABBITMQ_DEFAULT_VHOST=${RABBITMQ_DEFAULT_VHOST}
10
+ - RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}
10
11
volumes :
11
- - ./.erlang.cookie:/var/lib/rabbitmq/.erlang.cookie
12
12
- ./cluster-entrypoint.sh:/usr/local/bin/cluster-entrypoint.sh
13
13
entrypoint : /usr/local/bin/cluster-entrypoint.sh
14
14
@@ -19,8 +19,8 @@ services:
19
19
- rabbitmq1
20
20
environment :
21
21
- JOIN_CLUSTER_HOST=rabbitmq1
22
+ - RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}
22
23
volumes :
23
- - ./.erlang.cookie:/var/lib/rabbitmq/.erlang.cookie
24
24
- ./cluster-entrypoint.sh:/usr/local/bin/cluster-entrypoint.sh
25
25
entrypoint : /usr/local/bin/cluster-entrypoint.sh
26
26
@@ -31,8 +31,8 @@ services:
31
31
- rabbitmq1
32
32
environment :
33
33
- JOIN_CLUSTER_HOST=rabbitmq1
34
+ - RABBITMQ_ERLANG_COOKIE=${RABBITMQ_ERLANG_COOKIE}
34
35
volumes :
35
- - ./.erlang.cookie:/var/lib/rabbitmq/.erlang.cookie
36
36
- ./cluster-entrypoint.sh:/usr/local/bin/cluster-entrypoint.sh
37
37
entrypoint : /usr/local/bin/cluster-entrypoint.sh
38
38
You can’t perform that action at this time.
0 commit comments