Aligining the Dockerfile with the version in friendica/docker repository

This commit is contained in:
ne20002 2024-08-31 14:54:05 +00:00
parent 07d6500700
commit f1301aec73
No known key found for this signature in database
9 changed files with 157 additions and 29 deletions

View file

@ -0,0 +1,17 @@
<?php
if (getenv('REDIS_HOST')) {
return [
'system' => [
'session_handler' => 'cache',
'distributed_cache_driver' => 'redis',
'lock_driver' => 'redis',
'redis_host' => getenv('REDIS_HOST'),
'redis_port' => (getenv('REDIS_PORT') ?: ''),
'redis_password' => (getenv('REDIS_PW') ?: ''),
'redis_db' => (getenv('REDIS_DB') ?: 0),
],
];
} else {
return [];
}