Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo for db failed: Name or service not known in /code/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34
Stack trace:
#0 /code/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php(34): PDO->__construct('mysql:host=db;p...', 'root', 'SgCCwBkPr3kj', Array)
#1 /code/vendor/doctrine/dbal/src/Connection.php(378): Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(Array)
#2 /code/vendor/doctrine/dbal/src/Connection.php(453): Doctrine\DBAL\Connection->connect()
#3 /code/vendor/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#4 /code/vendor/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#5 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(871): Doctrine\DBAL\Connection->getDatabasePlatform()
#6 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(629): Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
#7 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(160): Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping(Object(Doctrine\ORM\Mapping\ClassMetadata))
#8 /code/vendor/doctrine/doctrine-bundle/src/Mapping/ClassMetadataFactory.php(18): Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#9 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(343): Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#10 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(207): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('App\\Entity\\Comp...')
#11 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(96): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('App\\Entity\\Comp...')
#12 /code/vendor/doctrine/doctrine-bundle/src/CacheWarmer/DoctrineMetadataCacheWarmer.php(48): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()
#13 /code/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php(46): Doctrine\Bundle\DoctrineBundle\CacheWarmer\DoctrineMetadataCacheWarmer->doWarmUp('/code/var/cache...', Object(Symfony\Component\Cache\Adapter\ArrayAdapter))
#14 /code/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php(99): Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUp('/code/var/cache...')
#15 /code/vendor/symfony/http-kernel/Kernel.php(545): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/code/var/cache...')
#16 /code/vendor/symfony/http-kernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#17 /code/vendor/symfony/http-kernel/Kernel.php(185): Symfony\Component\HttpKernel\Kernel->preBoot()
#18 /code/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#19 /code/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
#20 /code/public/index.php(5): require_once('/code/vendor/au...')
#21 {main}
Next PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: Name or service not known in /code/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php:34
Stack trace:
#0 /code/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php(34): PDO->__construct('mysql:host=db;p...', 'root', 'SgCCwBkPr3kj', Array)
#1 /code/vendor/doctrine/dbal/src/Connection.php(378): Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(Array)
#2 /code/vendor/doctrine/dbal/src/Connection.php(453): Doctrine\DBAL\Connection->connect()
#3 /code/vendor/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#4 /code/vendor/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#5 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(871): Doctrine\DBAL\Connection->getDatabasePlatform()
#6 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(629): Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
#7 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(160): Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping(Object(Doctrine\ORM\Mapping\ClassMetadata))
#8 /code/vendor/doctrine/doctrine-bundle/src/Mapping/ClassMetadataFactory.php(18): Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#9 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(343): Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#10 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(207): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('App\\Entity\\Comp...')
#11 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(96): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('App\\Entity\\Comp...')
#12 /code/vendor/doctrine/doctrine-bundle/src/CacheWarmer/DoctrineMetadataCacheWarmer.php(48): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()
#13 /code/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php(46): Doctrine\Bundle\DoctrineBundle\CacheWarmer\DoctrineMetadataCacheWarmer->doWarmUp('/code/var/cache...', Object(Symfony\Component\Cache\Adapter\ArrayAdapter))
#14 /code/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php(99): Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUp('/code/var/cache...')
#15 /code/vendor/symfony/http-kernel/Kernel.php(545): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/code/var/cache...')
#16 /code/vendor/symfony/http-kernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#17 /code/vendor/symfony/http-kernel/Kernel.php(185): Symfony\Component\HttpKernel\Kernel->preBoot()
#18 /code/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#19 /code/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
#20 /code/public/index.php(5): require_once('/code/vendor/au...')
#21 {main}
Next Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: Name or service not known in /code/vendor/doctrine/dbal/src/Driver/PDO/Exception.php:28
Stack trace:
#0 /code/vendor/doctrine/dbal/src/Driver/PDO/MySQL/Driver.php(40): Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
#1 /code/vendor/doctrine/dbal/src/Connection.php(378): Doctrine\DBAL\Driver\PDO\MySQL\Driver->connect(Array)
#2 /code/vendor/doctrine/dbal/src/Connection.php(453): Doctrine\DBAL\Connection->connect()
#3 /code/vendor/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#4 /code/vendor/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#5 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(871): Doctrine\DBAL\Connection->getDatabasePlatform()
#6 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(629): Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
#7 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(160): Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping(Object(Doctrine\ORM\Mapping\ClassMetadata))
#8 /code/vendor/doctrine/doctrine-bundle/src/Mapping/ClassMetadataFactory.php(18): Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#9 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(343): Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#10 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(207): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('App\\Entity\\Comp...')
#11 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(96): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('App\\Entity\\Comp...')
#12 /code/vendor/doctrine/doctrine-bundle/src/CacheWarmer/DoctrineMetadataCacheWarmer.php(48): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()
#13 /code/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php(46): Doctrine\Bundle\DoctrineBundle\CacheWarmer\DoctrineMetadataCacheWarmer->doWarmUp('/code/var/cache...', Object(Symfony\Component\Cache\Adapter\ArrayAdapter))
#14 /code/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php(99): Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUp('/code/var/cache...')
#15 /code/vendor/symfony/http-kernel/Kernel.php(545): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/code/var/cache...')
#16 /code/vendor/symfony/http-kernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#17 /code/vendor/symfony/http-kernel/Kernel.php(185): Symfony\Component\HttpKernel\Kernel->preBoot()
#18 /code/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#19 /code/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
#20 /code/public/index.php(5): require_once('/code/vendor/au...')
#21 {main}
Next Doctrine\DBAL\Exception\ConnectionException: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for db failed: Name or service not known in /code/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php:101
Stack trace:
#0 /code/vendor/doctrine/dbal/src/Connection.php(1939): Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert(Object(Doctrine\DBAL\Driver\PDO\Exception), NULL)
#1 /code/vendor/doctrine/dbal/src/Connection.php(1887): Doctrine\DBAL\Connection->handleDriverException(Object(Doctrine\DBAL\Driver\PDO\Exception), NULL)
#2 /code/vendor/doctrine/dbal/src/Connection.php(380): Doctrine\DBAL\Connection->convertException(Object(Doctrine\DBAL\Driver\PDO\Exception))
#3 /code/vendor/doctrine/dbal/src/Connection.php(453): Doctrine\DBAL\Connection->connect()
#4 /code/vendor/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#5 /code/vendor/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#6 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(871): Doctrine\DBAL\Connection->getDatabasePlatform()
#7 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(629): Doctrine\ORM\Mapping\ClassMetadataFactory->getTargetPlatform()
#8 /code/vendor/doctrine/orm/src/Mapping/ClassMetadataFactory.php(160): Doctrine\ORM\Mapping\ClassMetadataFactory->completeIdGeneratorMapping(Object(Doctrine\ORM\Mapping\ClassMetadata))
#9 /code/vendor/doctrine/doctrine-bundle/src/Mapping/ClassMetadataFactory.php(18): Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#10 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(343): Doctrine\Bundle\DoctrineBundle\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL, false, Array)
#11 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(207): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('App\\Entity\\Comp...')
#12 /code/vendor/doctrine/persistence/src/Persistence/Mapping/AbstractClassMetadataFactory.php(96): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('App\\Entity\\Comp...')
#13 /code/vendor/doctrine/doctrine-bundle/src/CacheWarmer/DoctrineMetadataCacheWarmer.php(48): Doctrine\Persistence\Mapping\AbstractClassMetadataFactory->getAllMetadata()
#14 /code/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php(46): Doctrine\Bundle\DoctrineBundle\CacheWarmer\DoctrineMetadataCacheWarmer->doWarmUp('/code/var/cache...', Object(Symfony\Component\Cache\Adapter\ArrayAdapter))
#15 /code/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php(99): Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUp('/code/var/cache...')
#16 /code/vendor/symfony/http-kernel/Kernel.php(545): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/code/var/cache...')
#17 /code/vendor/symfony/http-kernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->initializeContainer()
#18 /code/vendor/symfony/http-kernel/Kernel.php(185): Symfony\Component\HttpKernel\Kernel->preBoot()
#19 /code/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#20 /code/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
#21 /code/public/index.php(5): require_once('/code/vendor/au...')
#22 {main}
thrown in /code/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php on line 101