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