Docker-Compose installation gives Doctrine-Exception
spammads opened this issue · comments
Thanks for the great app.
I installed via docker-compose and the edge-image from the registry. Now the symfony-prod-log says my db-driver is not correct. Have a made a configuration-error?
Thanks for the help.
[2022-07-30T14:43:44.162669+02:00] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception: "The given 'driver' mysql is unknown, Doctrine currently supports only the following drivers: pdo_mysql, pdo_sqlite, pdo_pgsql, pdo_oci, oci8, ibm_db2, pdo_sqlsrv, mysqli, sqlsrv" at /var/www/davis/vendor/doctrine/dbal/src/Exception.php line 91 {"exception":"[object] (Doctrine\\DBAL\\Exception(code: 0): The given 'driver' mysql is unknown, Doctrine currently supports only the following drivers: pdo_mysql, pdo_sqlite, pdo_pgsql, pdo_oci, oci8, ibm_db2, pdo_sqlsrv, mysqli, sqlsrv at /var/www/davis/vendor/doctrine/dbal/src/Exception.php:91)"} []
Found the solution.
Im using docker swarm. Hence my db-container is referenced by davis_db. Changed this in the doctrine-yaml-file and compiled the image myself. Now its working.