mirror of
https://github.com/friendica/friendica
synced 2025-04-26 16:30:12 +00:00
Aligining the Dockerfile with the version in friendica/docker repository
This commit is contained in:
parent
07d6500700
commit
f1301aec73
9 changed files with 157 additions and 29 deletions
17
.devcontainer/include/01redis.config.php
Normal file
17
.devcontainer/include/01redis.config.php
Normal 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 [];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue