Merge pull request #1497 from nextcloud/enh/1156/add-redis-volume

add a volume for redis
This commit is contained in:
Simon L 2022-12-15 12:13:11 +01:00 committed by GitHub
commit b1d5204078
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -337,6 +337,9 @@ if [ "$BORG_MODE" = restore ]; then
# Add file to Nextcloud container so that it performs a fingerprint update the next time # Add file to Nextcloud container so that it performs a fingerprint update the next time
touch "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update" touch "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update"
chmod 777 "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update" chmod 777 "/nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/fingerprint.update"
# Delete redis cache
rm -f "/mnt/redis/dump.rdb"
fi fi
# Do the Backup check # Do the Backup check

View file

@ -178,7 +178,13 @@
"REDIS_HOST_PASSWORD=%REDIS_PASSWORD%", "REDIS_HOST_PASSWORD=%REDIS_PASSWORD%",
"TZ=%TIMEZONE%" "TZ=%TIMEZONE%"
], ],
"volumes": [], "volumes": [
{
"name": "nextcloud_aio_redis",
"location": "/data",
"writeable": true
}
],
"secrets": [ "secrets": [
"REDIS_PASSWORD", "REDIS_PASSWORD",
"ONLYOFFICE_SECRET" "ONLYOFFICE_SECRET"
@ -295,6 +301,11 @@
"name": "nextcloud_aio_elasticsearch", "name": "nextcloud_aio_elasticsearch",
"location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch", "location": "/nextcloud_aio_volumes/nextcloud_aio_elasticsearch",
"writeable": true "writeable": true
},
{
"name": "nextcloud_aio_redis",
"location": "/mnt/redis",
"writeable": true
} }
], ],
"secrets": [ "secrets": [