Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
infrastructure-dev
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
common
infrastructure-dev
Commits
e18dc6bf
Commit
e18dc6bf
authored
Apr 13, 2018
by
lizhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
631363cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.md
README.md
+6
-6
No files found.
README.md
View file @
e18dc6bf
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment