Skip to content

Commit

Permalink
Automatically restart containers on startup failure
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Jan 17, 2017
1 parent f42ba77 commit 36d9516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions multi-module/docker-compose-common.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
commandsideservice:
build: ./todo-service/
restart: on-failure:10
restart: unless-stopped
ports:
- "8081:8080"

querysideservice:
build: ./todo-view-service/
restart: on-failure:10
restart: unless-stopped
ports:
- "8082:8080"
2 changes: 1 addition & 1 deletion single-module/docker-compose-common.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
standaloneservice:
build: ./
restart: on-failure:10
restart: unless-stopped
ports:
- "8080:8080"

0 comments on commit 36d9516

Please sign in to comment.