Fix nextcloud-cache so it doesn't run as root

This commit is contained in:
mr-vercetti 2022-02-09 18:14:45 +00:00
parent 78df849976
commit 4efe235d56

View File

@ -2,6 +2,7 @@ services:
nextcloud-cache: nextcloud-cache:
image: redis image: redis
container_name: nextcloud-cache container_name: nextcloud-cache
user: ${PUID}:${PGID}
networks: networks:
- nextcloud - nextcloud
ports: ports:
@ -14,8 +15,8 @@ services:
networks: networks:
- nextcloud - nextcloud
environment: environment:
- PUID=1000 - PUID=${PUID}
- PGID=1000 - PGID=${PGID}
- MYSQL_ROOT_PASSWORD=${DB_ROOT_PW} - MYSQL_ROOT_PASSWORD=${DB_ROOT_PW}
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
- MYSQL_DATABASE=${DB_NAME} - MYSQL_DATABASE=${DB_NAME}