Skip to content

Commit 36bde52

Browse files
committed
Add a blurb about sourcing the Erlang cookie from a file
1 parent 6cf56ff commit 36bde52

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rabbitmq/content.md

+8
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ Listing users ...
7272
guest [administrator]
7373
```
7474

75+
If you wish to provide the cookie via a file (such as with [Docker Secrets](https://docs.docker.com/engine/swarm/secrets/)), it needs to be mounted at `/var/lib/rabbitmq/.erlang.cookie`:
76+
77+
```console
78+
docker service create ... --secret source=my-erlang-cookie,target=/var/lib/rabbitmq/.erlang.cookie ... %%IMAGE%%
79+
```
80+
81+
(Note that it will likely also be necessary to specify `uid=XXX,gid=XXX,mode=0600` in order for Erlang in the container to be able to read the cookie file properly. See [Docker's `--secret` documentation for more details](https://docs.docker.com/engine/reference/commandline/service_create/#create-a-service-with-secrets).)
82+
7583
### Management Plugin
7684

7785
There is a second set of tags provided with the [management plugin](https://www.rabbitmq.com/management.html) installed and enabled by default, which is available on the standard management port of 15672, with the default username and password of `guest` / `guest`:

0 commit comments

Comments
 (0)