Warning: Redis::connect(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/api/module/Application/src/Cache/RedisFactory.php on line 16

Fatal error: Uncaught RedisException: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/api/module/Application/src/Cache/RedisFactory.php:16 Stack trace: #0 /var/www/api/module/Application/src/Cache/RedisFactory.php(16): Redis->connect('redis', 6379) #1 /var/www/api/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(764): Application\Cache\RedisFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'Application\\Cac...', NULL) #2 /var/www/api/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('Application\\Cac...') #3 /var/www/api/vendor/doctrine/doctrine-module/src/DoctrineModule/Service/CacheFactory.php(59): Zend\ServiceManager\ServiceManager->get('Application\\Cac...') #4 /var/www/api/vendor/doctrine/doctrine-module/src/DoctrineModule/Service/CacheFactory.php(103): DoctrineModule\Service\CacheFactory->__invoke(Object(Zend\ServiceManager\ServiceManager), 'Doctrine\\Common...') #5 /var/www/api/vendor/doct in /var/www/api/vendor/zendframework/zend-servicemanager/src/ServiceManager.php on line 771