2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2024-11-15 18:59:27 +01:00
docker/2019.09/fpm-alpine/config/01redis.config.php
2019-09-29 11:51:12 +02:00

16 lines
369 B
PHP

<?php
if (getenv('REDIS_HOST')) {
return [
'system' => [
'lock_driver' => 'redis',
'redis_host' => getenv('REDIS_HOST'),
'redis_port' => (getenv('REDIS_PORT') ? getenv('REDIS_PORT') : ''),
'redis_password' => (getenv('REDIS_PW') ? getenv('REDIS_PW') : ''),
'redis_db' => (getenv('REDIS_DB') ? getenv('REDIS_DB') : 0),
],
];
} else {
return [];
}