Added restart policy in compose

This commit is contained in:
2024-11-30 11:12:35 +01:00
parent 120ff9a74f
commit 5778deaa92

View File

@@ -26,6 +26,10 @@ services:
image: git.vhaudiquet.fr/vhaudiquet/lolstats-patch_detector:${GIT_COMMIT_HASH:-latest} image: git.vhaudiquet.fr/vhaudiquet/lolstats-patch_detector:${GIT_COMMIT_HASH:-latest}
build: ./patch_detector build: ./patch_detector
restart: "no" restart: "no"
deploy:
restart_policy:
condition: any
delay: 1h
environment: environment:
MONGO_USER: root MONGO_USER: root
MONGO_PASS: password MONGO_PASS: password
@@ -34,6 +38,11 @@ services:
image: git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${GIT_COMMIT_HASH:-latest} image: git.vhaudiquet.fr/vhaudiquet/lolstats-match_collector:${GIT_COMMIT_HASH:-latest}
build: ./match_collector build: ./match_collector
restart: "no" restart: "no"
deploy:
restart_policy:
condition: any
delay: 20h
window: 1m
environment: environment:
MONGO_USER: root MONGO_USER: root
MONGO_PASS: password MONGO_PASS: password