As per this the 'Databases and Doctrine ORM page (https://symfony.com/doc/current/doctrine.html)
I edited the .env file and used dummy values for the database url and password this satisfied Symfony.