feat: Add password on REDIS to fix migration to 20.0.1

See discussion on https://help.nextcloud.com/t/solved-latest-docker-image-broke-the-installation-redis-password-auth/87598/15
This commit is contained in:
Simon 2020-12-02 12:40:15 +01:00
parent 8690539930
commit 9dbeda11db
2 changed files with 7 additions and 1 deletions

View File

@ -23,3 +23,7 @@ POSTGRES_PASSWORD=password-example
POSTGRES_DB=postgres-database-name-example
POSTGRES_CONTAINER_NAME=nextcloud-postgres
POSTGRES_VOLUME_NAME=nextcloud-postgres
# REDIS
NEXTCLOUD_REDIS_PASSWORD=redis-password

View File

@ -37,6 +37,7 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
REDIS_HOST: 'nextcloud-redis'
REDIS_HOST_PASSWORD: ${NEXTCLOUD_REDIS_PASSWORD}
PUID: 1001
PGID: 119
labels:
@ -61,9 +62,10 @@ services:
- /etc/localtime:/etc/localtime:ro
nextcloud-redis:
image: redis:6.0.8-alpine
image: redis:6.0.9-alpine
container_name: nextcloud-redis
restart: always
command: redis-server --requirepass ${NEXTCLOUD_REDIS_PASSWORD}
environment:
PUID: 1001
PGID: 119