0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-24 20:34:10 +02:00

set redis environment variables

Signed-off-by: marceljd <support@dihosting.ch>
This commit is contained in:
marceljd 2019-01-11 08:56:57 +00:00
parent 250802c706
commit ba4c1359b9
2 changed files with 16 additions and 0 deletions

12
.config/redis.config.php Normal file
View 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,
),
);
}