set redis environment variables
Signed-off-by: marceljd <support@dihosting.ch>
This commit is contained in:
parent
250802c706
commit
ba4c1359b9
12
.config/redis.config.php
Normal file
12
.config/redis.config.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (getenv('REDIS_HOST')) {
|
||||
$CONFIG = array (
|
||||
'memcache.distributed' => '\OC\Memcache\Redis',
|
||||
'memcache.locking' => '\OC\Memcache\Redis',
|
||||
'redis' => array(
|
||||
'host' => getenv('REDIS_HOST'),
|
||||
'port' => getenv('REDIS_PORT') ?: 6379,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user