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
```
......@@ -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