Set the restart condition to a supported one

This commit is contained in:
Andrea Dell'Amico 2020-10-13 18:42:02 +02:00
parent e06bcc48f8
commit 4d6b320bdb
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ services:
placement:
constraints: [node.role == worker]
restart_policy:
condition: always
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
@ -38,7 +38,7 @@ services:
placement:
constraints: [node.role == worker]
restart_policy:
condition: always
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
@ -62,7 +62,7 @@ services:
placement:
constraints: {{ open_asfa_db_constraints }}
restart_policy:
condition: always
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s