From 328f34f5181e53db0932e90a1e398101b81cfe4a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 9 Apr 2024 16:57:50 +0200 Subject: [PATCH] Remove the volumes definition when there is no volume. --- templates/shinyproxy-docker-compose.yml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/shinyproxy-docker-compose.yml.j2 b/templates/shinyproxy-docker-compose.yml.j2 index 01ab56e..092f1f2 100644 --- a/templates/shinyproxy-docker-compose.yml.j2 +++ b/templates/shinyproxy-docker-compose.yml.j2 @@ -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 }}