Remove the volumes definition when there is no volume.
This commit is contained in:
parent
9f08faacec
commit
328f34f518
|
@ -43,6 +43,7 @@ services:
|
|||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if shinyproxy_docker_privileged_user or shinyproxy_docker_mount_conf_file %}
|
||||
volumes:
|
||||
{% if shinyproxy_docker_privileged_user %}
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
@ -50,6 +51,7 @@ services:
|
|||
{% if shinyproxy_docker_mount_conf_file %}
|
||||
- {{ shinyproxy_as_docker_src_dir }}/application.yml:{{ shinyproxy_conf_dir }}/application.yml
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if not shinyproxy_docker_mount_conf_file %}
|
||||
secrets:
|
||||
- source: {{ shinyproxy_as_docker_stack_name }}_{{ shinyproxy_as_docker_service_name }}
|
||||
|
|
Loading…
Reference in New Issue