From 89334ac287d384bec5fdfeeefe358dae458c0ce3 Mon Sep 17 00:00:00 2001 From: marceljd Date: Fri, 26 Oct 2018 08:46:41 +0200 Subject: [PATCH 1/2] Redis env vars added --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0d712c01c..d030e1187 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 From 384129366d0ffd9848887f0972aae060118233a0 Mon Sep 17 00:00:00 2001 From: marceljd Date: Fri, 26 Oct 2018 08:48:16 +0200 Subject: [PATCH 2/2] redis.config.php added --- .config/redis.config.php | 11 +++++++++++ 12.0/apache/config/redis.config.php | 11 +++++++++++ 12.0/fpm-alpine/config/redis.config.php | 11 +++++++++++ 12.0/fpm/config/redis.config.php | 11 +++++++++++ 13.0/apache/config/redis.config.php | 11 +++++++++++ 13.0/fpm-alpine/config/redis.config.php | 11 +++++++++++ 13.0/fpm/config/redis.config.php | 11 +++++++++++ 14.0/apache/config/redis.config.php | 11 +++++++++++ 14.0/fpm-alpine/config/redis.config.php | 11 +++++++++++ 14.0/fpm/config/redis.config.php | 11 +++++++++++ 10 files changed, 110 insertions(+) create mode 100644 .config/redis.config.php create mode 100644 12.0/apache/config/redis.config.php create mode 100644 12.0/fpm-alpine/config/redis.config.php create mode 100644 12.0/fpm/config/redis.config.php create mode 100644 13.0/apache/config/redis.config.php create mode 100644 13.0/fpm-alpine/config/redis.config.php create mode 100644 13.0/fpm/config/redis.config.php create mode 100644 14.0/apache/config/redis.config.php create mode 100644 14.0/fpm-alpine/config/redis.config.php create mode 100644 14.0/fpm/config/redis.config.php diff --git a/.config/redis.config.php b/.config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/.config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/12.0/apache/config/redis.config.php b/12.0/apache/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/12.0/apache/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/12.0/fpm-alpine/config/redis.config.php b/12.0/fpm-alpine/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/12.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/12.0/fpm/config/redis.config.php b/12.0/fpm/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/12.0/fpm/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/13.0/apache/config/redis.config.php b/13.0/apache/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/13.0/apache/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/13.0/fpm-alpine/config/redis.config.php b/13.0/fpm-alpine/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/13.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/13.0/fpm/config/redis.config.php b/13.0/fpm/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/13.0/fpm/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/14.0/apache/config/redis.config.php b/14.0/apache/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/14.0/apache/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/14.0/fpm-alpine/config/redis.config.php b/14.0/fpm-alpine/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/14.0/fpm-alpine/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} + diff --git a/14.0/fpm/config/redis.config.php b/14.0/fpm/config/redis.config.php new file mode 100644 index 000000000..6147b45c7 --- /dev/null +++ b/14.0/fpm/config/redis.config.php @@ -0,0 +1,11 @@ + '\OC\Memcache\Redis', + 'redis' => array( + 'host' => getenv('REDIS_HOST'), + 'port' => getenv('REDIS_PORT') ?: 6379, + ), + ); +} +