Remove the volumes definition when there is no volume.

This commit is contained in:
Andrea Dell'Amico 2024-04-09 16:57:50 +02:00
parent 9f08faacec
commit 328f34f518
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 2 additions and 0 deletions

View File

@ -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 }}