This commit is contained in:
Juan Pablo Vial
2025-06-25 18:07:08 -04:00
parent 7f97862324
commit ab7328b40b
8 changed files with 202 additions and 20 deletions

View File

@ -5,8 +5,8 @@ return [
Predis\ClientInterface::class => function(ContainerInterface $container) {
$options = [
'scheme' => 'tcp',
'host' => $container->get('REDIS_HOST'),
'port' => $container->get('REDIS_PORT')
'host' => $container->has('REDIS_HOST') ? $container->get('REDIS_HOST') : 'redis',
'port' => $container->has('REDIS_PORT') ? $container->get('REDIS_PORT') : 6379
];
if ($container->has('REDIS_USER')) {
$options['username'] = $container->get('REDIS_USER');