From 4d6b320bdb1285c7a6d89d6ca192b136e17f3824 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 13 Oct 2020 18:42:02 +0200 Subject: [PATCH] Set the restart condition to a supported one --- templates/open-asfa-docker-compose.yml.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/open-asfa-docker-compose.yml.j2 b/templates/open-asfa-docker-compose.yml.j2 index 5bd6935..b733b63 100644 --- a/templates/open-asfa-docker-compose.yml.j2 +++ b/templates/open-asfa-docker-compose.yml.j2 @@ -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