From 9eccf00f11828f82a5eb8a6dfa43896443fce792 Mon Sep 17 00:00:00 2001 From: wglambert Date: Sat, 30 Oct 2021 14:24:04 -0700 Subject: [PATCH 1/3] Update content.md --- rabbitmq/content.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/rabbitmq/content.md b/rabbitmq/content.md index fed7997cda5b..5c3d6c820915 100644 --- a/rabbitmq/content.md +++ b/rabbitmq/content.md @@ -54,6 +54,26 @@ RABBITMQ_SSL_VERIFY RABBITMQ_VM_MEMORY_HIGH_WATERMARK ``` +### Setting default user and password + +If you wish to change the default username and password of `guest` / `guest`, you can do so with the `RABBITMQ_DEFAULT_USER` and `RABBITMQ_DEFAULT_PASS` environmental variables: + +```console +$ docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password %%IMAGE%%:3-management +``` + +You can then go to `http://localhost:8080` or `http://host-ip:8080` in a browser and use `user`/`password` to gain access to the management console + +To source the username and password from files instead of environment variables, add a `_FILE` suffix to the environment variable names (for example, `RABBITMQ_DEFAULT_USER_FILE=/run/secrets/xxx` to use [Docker Secrets](https://docs.docker.com/engine/swarm/secrets/)). + +### Setting default vhost + +If you wish to change the default vhost, you can do so with the `RABBITMQ_DEFAULT_VHOST` environmental variables: + +```console +$ docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_VHOST=my_vhost %%IMAGE%%:3-management +``` + ### Memory Limits RabbitMQ contains functionality which explicitly tracks and manages memory usage, and thus needs to be made aware of cgroup-imposed limits (e.g. [`docker run --memory=..`](https://docs.docker.com/config/containers/resource_constraints/#limit-a-containers-access-to-memory)). From 672b02ce339d874c9c1dd1a8b6f085c9d178458e Mon Sep 17 00:00:00 2001 From: wglambert Date: Fri, 5 Nov 2021 16:50:27 -0700 Subject: [PATCH 2/3] Update rabbitmq/content.md Co-authored-by: yosifkit --- rabbitmq/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rabbitmq/content.md b/rabbitmq/content.md index 5c3d6c820915..fccdbc1e063f 100644 --- a/rabbitmq/content.md +++ b/rabbitmq/content.md @@ -56,7 +56,7 @@ RABBITMQ_VM_MEMORY_HIGH_WATERMARK ### Setting default user and password -If you wish to change the default username and password of `guest` / `guest`, you can do so with the `RABBITMQ_DEFAULT_USER` and `RABBITMQ_DEFAULT_PASS` environmental variables: +If you wish to change the default username and password of `guest` / `guest`, you can do so with the `RABBITMQ_DEFAULT_USER` and `RABBITMQ_DEFAULT_PASS` environmental variables. These variables were available previously in the docker-specific entrypoint shell script but are now available in RabbitMQ directly. ```console $ docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password %%IMAGE%%:3-management From d9e33686abffa3eae90022c33ade2e37fa10e187 Mon Sep 17 00:00:00 2001 From: wglambert Date: Wed, 5 Jan 2022 10:25:19 -0800 Subject: [PATCH 3/3] Update rabbitmq/content.md Co-authored-by: yosifkit --- rabbitmq/content.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/rabbitmq/content.md b/rabbitmq/content.md index fccdbc1e063f..268b74529d12 100644 --- a/rabbitmq/content.md +++ b/rabbitmq/content.md @@ -64,8 +64,6 @@ $ docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER You can then go to `http://localhost:8080` or `http://host-ip:8080` in a browser and use `user`/`password` to gain access to the management console -To source the username and password from files instead of environment variables, add a `_FILE` suffix to the environment variable names (for example, `RABBITMQ_DEFAULT_USER_FILE=/run/secrets/xxx` to use [Docker Secrets](https://docs.docker.com/engine/swarm/secrets/)). - ### Setting default vhost If you wish to change the default vhost, you can do so with the `RABBITMQ_DEFAULT_VHOST` environmental variables: