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