Commit e18dc6bf authored by lizhuo's avatar lizhuo

Update README.md

parent 631363cc
......@@ -14,7 +14,7 @@
1. 安装[Docker 17+](https://www.docker.com)
2. 安装[Docker Compose](https://docs.docker.com/compose/install/#prerequisites)
3. 构建rabbitmq image
```shell
```
cd rabbitmq
./build.sh
```
......@@ -22,8 +22,8 @@ cd rabbitmq
## 使用方式
### 启动 `docker-compose up -d`
eureka-server需要等待config-server成功启动才能起来,而目前两个服务时同时起的,
所以**间隔几秒后需要执行第二次命令**。
eureka-server需要等待config-server成功启动才能起来,而目前两个服务时同时起的,
所以**间隔几秒后需要执行第二次命令**。
### 销毁环境 `docker-compose down`
......@@ -32,11 +32,11 @@ cd rabbitmq
## 运行数据
默认情况下,环境销毁后数据会丢失,使用下面的方法可以把数据保存在本地
```shell
```
docker volume create --opt type=none --opt device=<absolute path of host> --opt o=bind --name mongo_data
```
Update `docker-stack.yml` as below,
```shell
Update `docker-compose.yml` as below,
```
volumes:
redis_data:
mongo_data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment