symfony was one of the first frameworks created for php, send used as the basis for almost every framework created after.
add database address in .env file
DATABASE_URL="postgresql://postgres:postgres@postgres-symfony-test:5432/php-sy-test?serverVersion=11&charset=utf8"
To terminal run the command below
docker-compose up -d
With the containers running, access the php container and install the composer dependencies
docker exec -it php-symfony-test bash
composer install
create the tables in the database through migration
php bin/console doctrine:migrations:migrate
http://localhost/documentation