0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-25 04:40:55 +02:00

Merge pull request #600 from marceljd/redis-env-vars

Set Redis through environment variables
This commit is contained in:
Tilo Spannagel 2019-02-07 12:20:53 +01:00 committed by GitHub
commit b9ae3256ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 129 additions and 32 deletions

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_HOST_PORT') ?: 6379,
),
);
}