A symfony5 sample project using symfony dev docker
git clone https://github.com/readymadehost/symfony-dev-docker.git symfony-sample-dockercd symfony-sample-dockergit clone https://github.com/readymadehost/symfony-dev-docker-sample.git projectcp project/symfony-dev-docker/.env .envand review.envfiledocker-compose builddocker-compose up -ddocker-compose exec cli bashcomposer installto install php packagesmppto manage project permissionbin/console doctrine:migrations:migrateto migrate database tablesbin/console doctrine:fixtures:loadload example databin/console cache:clear
bin/console --env=test doctrine:database:drop --forceto drop project_test database if existbin/console --env=test doctrine:database:createto create fresh test databasebin/console --env=test doctrine:migrations:migratebin/console --env=test doctrine:fixtures:loadbin/phpunitto run tests
Symfony dev docker has database, extensions and everything needed to work with unit tests and function tests. Github actions are configured for sample project, check https://github.com/readymadehost/symfony-dev-docker-sample/blob/master/.github/workflows/tests.yml
Create an issue if you have any questions.