From ba4c1359b96a34f9945e5541232223a7ab1a6ce0 Mon Sep 17 00:00:00 2001 From: marceljd Date: Fri, 11 Jan 2019 08:56:57 +0000 Subject: [PATCH] set redis environment variables Signed-off-by: marceljd --- .config/redis.config.php | 12 ++++++++++++ README.md | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 .config/redis.config.php diff --git a/.config/redis.config.php b/.config/redis.config.php new file mode 100644 index 00000000..d300dd0a --- /dev/null +++ b/.config/redis.config.php @@ -0,0 +1,12 @@ + '\OC\Memcache\Redis', + 'memcache.locking' => '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/README.md b/README.md index 8e4c168d..06189890 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,10 @@ The install and update script is only triggered when a default command is used ( - `NEXTCLOUD_UPDATE` (default: _0_) +If you want to use Redis you have to create a seperate [Redis](https://hub.docker.com/_/redis/) container in your setup / in your docker-compose file. To inform Nextcloud about the Redis container add: + +- 'REDIS_HOST' (not set by default) Name of Redis container +- 'REDIS_PORT' (optional, default:_6379_) Port number of Redis container. Use only if you use a non-standard port. # Running this image with docker-compose