From ca136f40b5c6437d2967b34873b187563b1f8204 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 29 May 2023 20:21:27 +0200 Subject: [PATCH] Do not add the label if the volume is remote --- templates/epas-client-timbrature-docker-compose.yml.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/epas-client-timbrature-docker-compose.yml.j2 b/templates/epas-client-timbrature-docker-compose.yml.j2 index e6f40fc..ae2179a 100644 --- a/templates/epas-client-timbrature-docker-compose.yml.j2 +++ b/templates/epas-client-timbrature-docker-compose.yml.j2 @@ -8,7 +8,7 @@ networks: volumes: {{ epas_client_timbrature_data_volume }}: -{% if epas_client_timbrature_data_remote_volume %} +{% if epas_client_timbrature_data_remote_volume %} driver: local driver_opts: type: nfs4 @@ -50,7 +50,11 @@ services: placement: constraints: - node.role == worker +{% if not epas_client_timbrature_data_remote_volume %} - {{ epas_client_timbrature_node_constraints }} + +{% endif %} + restart_policy: condition: on-failure delay: 5s