浏览代码

Moved instructions to content.md. Added vhost options

Tyler DeWitt 10 年之前
父节点
当前提交
49e0d35b55
共有 2 个文件被更改,包括 14 次插入8 次删除
  1. 0 8
      rabbitmq/README.md
  2. 14 0
      rabbitmq/content.md

+ 0 - 8
rabbitmq/README.md

@@ -68,14 +68,6 @@ You can access it by visiting `http://container-ip:15672` in a browser or, if yo
 
 You can then go to `http://localhost:8080` or `http://host-ip:8080` in a browser.
 
-## 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:
-
-     docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq: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
-
 ## Connecting to the daemon
 
 	docker run --name some-app --link some-rabbit:rabbit -d application-that-uses-rabbitmq

+ 14 - 0
rabbitmq/content.md

@@ -61,6 +61,20 @@ You can access it by visiting `http://container-ip:15672` in a browser or, if yo
 
 You can then go to `http://localhost:8080` or `http://host-ip:8080` in a browser.
 
+## 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:
+
+     docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=user -e RABBITMQ_DEFAULT_PASS=password rabbitmq: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
+
+## Setting default vhost
+
+If you wish to change the default vhost, you can do so wiht the `RABBITMQ_DEFAULT_VHOST` environmental variables:
+
+     docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_VHOST=my_vhost rabbitmq:3-management
+
 ## Connecting to the daemon
 
 	docker run --name some-app --link some-rabbit:rabbit -d application-that-uses-rabbitmq