From 4efe235d56dcafd8dc151a66c8b4bf933b1074de Mon Sep 17 00:00:00 2001 From: mr-vercetti <87.milewski@gmail.com> Date: Wed, 9 Feb 2022 18:14:45 +0000 Subject: [PATCH] Fix nextcloud-cache so it doesn't run as root --- docker/stacks/nextcloud/nextcloud.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/stacks/nextcloud/nextcloud.yml b/docker/stacks/nextcloud/nextcloud.yml index 90b10a7..5175912 100644 --- a/docker/stacks/nextcloud/nextcloud.yml +++ b/docker/stacks/nextcloud/nextcloud.yml @@ -2,6 +2,7 @@ services: nextcloud-cache: image: redis container_name: nextcloud-cache + user: ${PUID}:${PGID} networks: - nextcloud ports: @@ -14,8 +15,8 @@ services: networks: - nextcloud environment: - - PUID=1000 - - PGID=1000 + - PUID=${PUID} + - PGID=${PGID} - MYSQL_ROOT_PASSWORD=${DB_ROOT_PW} - TZ=${TIMEZONE} - MYSQL_DATABASE=${DB_NAME}