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