Added restart policy in compose
This commit is contained in:
@@ -26,6 +26,10 @@ services:
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-patch_detector:${GIT_COMMIT_HASH:-latest}
|
||||
build: ./patch_detector
|
||||
restart: "no"
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: 1h
|
||||
environment:
|
||||
MONGO_USER: root
|
||||
MONGO_PASS: password
|
||||
@@ -34,6 +38,11 @@ services:
|
||||
image: git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${GIT_COMMIT_HASH:-latest}
|
||||
build: ./match_collector
|
||||
restart: "no"
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: any
|
||||
delay: 20h
|
||||
window: 1m
|
||||
environment:
|
||||
MONGO_USER: root
|
||||
MONGO_PASS: password
|
||||
|
||||
Reference in New Issue
Block a user