Skip to content

Commit

Permalink
Add restart on-failure in docker compose (#804)
Browse files Browse the repository at this point in the history
resolves: #802

Signed-off-by: Lan Xia <[email protected]>
  • Loading branch information
llxia authored Jun 1, 2023
1 parent 43acb53 commit 2e24159
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
image: mongo:6.0.1
volumes:
- ./mongo/data:/data/db
restart: on-failure:3
mongo-seed:
profiles:
- data
Expand All @@ -21,11 +22,13 @@ services:
- mongo
environment:
MONGO_CONTAINER_NAME: mongo
restart: on-failure:3
client:
build:
context: test-result-summary-client
args:
REACT_APP_CONNECT_ADOPTIUM_API: ${REACT_APP_CONNECT_ADOPTIUM_API}
restart: on-failure:3
ports:
- 3000:3000
nginx:
Expand Down

0 comments on commit 2e24159

Please sign in to comment.