Set the restart condition to a supported one
This commit is contained in:
parent
e06bcc48f8
commit
4d6b320bdb
|
@ -21,7 +21,7 @@ services:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.role == worker]
|
constraints: [node.role == worker]
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: always
|
condition: on-failure
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
window: 120s
|
window: 120s
|
||||||
|
@ -38,7 +38,7 @@ services:
|
||||||
placement:
|
placement:
|
||||||
constraints: [node.role == worker]
|
constraints: [node.role == worker]
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: always
|
condition: on-failure
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
window: 120s
|
window: 120s
|
||||||
|
@ -62,7 +62,7 @@ services:
|
||||||
placement:
|
placement:
|
||||||
constraints: {{ open_asfa_db_constraints }}
|
constraints: {{ open_asfa_db_constraints }}
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: always
|
condition: on-failure
|
||||||
delay: 5s
|
delay: 5s
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
window: 120s
|
window: 120s
|
||||||
|
|
Loading…
Reference in New Issue