From 9f08faacec2bd1a29b9e2936e73d5fe0b56527ba Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 9 Apr 2024 16:54:51 +0200 Subject: [PATCH] Mount of the docker socket is optional. --- defaults/main.yml | 1 + templates/shinyproxy-docker-compose.yml.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index f401982..d9a8963 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -4,6 +4,7 @@ # https://github.com/openanalytics/shinyproxy-config-examples shinyproxy_install: true shinyproxy_as_docker_service: false +shinyproxy_docker_privileged_user: false shinyproxy_major_ver: 3 shinyproxy_minor_ver: 0 shinyproxy_patch_ver: 2 diff --git a/templates/shinyproxy-docker-compose.yml.j2 b/templates/shinyproxy-docker-compose.yml.j2 index 4371ff7..01ab56e 100644 --- a/templates/shinyproxy-docker-compose.yml.j2 +++ b/templates/shinyproxy-docker-compose.yml.j2 @@ -44,7 +44,9 @@ services: {% endif %} {% endif %} volumes: +{% if shinyproxy_docker_privileged_user %} - /var/run/docker.sock:/var/run/docker.sock +{% endif %} {% if shinyproxy_docker_mount_conf_file %} - {{ shinyproxy_as_docker_src_dir }}/application.yml:{{ shinyproxy_conf_dir }}/application.yml {% endif %}