From 411f1360e0cd77a9a93a08fc90de2f8df4d4dfd9 Mon Sep 17 00:00:00 2001 From: Corbin Bartsch Date: Tue, 30 Aug 2022 19:54:10 -0400 Subject: [PATCH] Add `user` support --- README.md | 1 + templates/docker-compose.yml.j2 | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 74fdbd5..3411d1c 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ containers: active: true image: nextcloud container_name: nextcloud + user: www-data include_global_env_vars: false volumes: - "{{ appdata_path }}/nextcloud/html:/var/www/html" diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2 index 1d26a98..30c029b 100644 --- a/templates/docker-compose.yml.j2 +++ b/templates/docker-compose.yml.j2 @@ -18,6 +18,9 @@ services: {% if container.build is defined %} build: {{ container.build }} {% endif %} +{% if container.user is defined %} + user: {{ container.user }} +{$ endif %} {% if container.privileged is defined %} privileged: {{ container.privileged }} {% endif %}