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
ee67f764
Commit
ee67f764
authored
Apr 20, 2018
by
lizhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[feat] specify eureka-server's restart policy
close
#1
parent
f5899a58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
README.md
+1
-2
docker-compose.yml
docker-compose.yml
+1
-0
No files found.
README.md
View file @
ee67f764
...
@@ -17,8 +17,7 @@
...
@@ -17,8 +17,7 @@
## 使用方式
## 使用方式
### 启动 `docker-compose up -d`
### 启动 `docker-compose up -d`
eureka-server需要等待config-server成功启动才能起来,而目前两个服务时同时起的,
eureka-server需要依赖config-server的成功启动,所以
**eureka-server需要等待一段时间后才能正常启动**
。
所以
**间隔几秒后需要执行第二次命令**
。
### 销毁环境 `docker-compose down`
### 销毁环境 `docker-compose down`
...
...
docker-compose.yml
View file @
ee67f764
...
@@ -2,6 +2,7 @@ version: "3.3"
...
@@ -2,6 +2,7 @@ version: "3.3"
services
:
services
:
eureka-server
:
eureka-server
:
build
:
./eureka-server
build
:
./eureka-server
restart
:
on-failure
depends_on
:
depends_on
:
-
config-server
-
config-server
ports
:
ports
:
...
...
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