Environment for develop an app
A very simple Docker-compose to discover Symfony 6 with PHP 8.1 in 5 minutes
Clone the project
git clone https://github.com/disco07/docker-php-nginx-postgres.gitRun the docker-compose
docker-compose build
docker-compose up -dEnter on bash PHP
docker exec -it php8-container bashCreate your new Symfony application
symfony new project-name --fullYour application is available at http://127.0.0.1:8080*
Modify the .env file like this:
DATABASE_URL="postgresql://symfony:ChangeMe@postgres:5432/app?serverVersion=13&charset=utf8"- Linux-Windows-MacOs
- Docker
- docker-compose