Symfony 6 only with Docker containers. Ready to use.
Clone the project
git@github.com:francoiscoche/symfony6-docker-template.git
Run the docker-compose
docker-compose build
docker-compose up -d
Log into the PHP container
docker exec -it php8 bash
Create your Symfony application and launch the internal server
symfony new new-project --webapp
cd new-project
symfony serve -d
The application is available at http://127.0.0.1:9000
Modify the .env to access to the database:
DATABASE_URL="mysql://root:root@db:3306/db_name"
This docker-compose provides you :
- PHP-8
- Composer
- Symfony CLI
- and some other php extentions
- nodejs, npm, yarn
- mysql
- Docker
- Docker-compose
Adapted by @francoiscoche Thanks to @yoanbernabeu