Do not add the label if the volume is remote
This commit is contained in:
parent
9d466e4abc
commit
ca136f40b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue