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:
commit
b9ae3256ad
19 changed files with 129 additions and 32 deletions
12
14.0/fpm-alpine/config/redis.config.php
Normal file
12
14.0/fpm-alpine/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_HOST_PORT') ?: 6379,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue