A Docker-based Symfony template.
- PHP
- MYSQL
- NGINX
- MAILDEV
- A Symfony skeleton application
- Symfony Flex
- Annotations
- Twig
- Doctrine
- Maker Bundle
- PHP Unit, Paratest, Coverage-check and Dama Doctrine Bundle
- PHPStan, PHP CS Fixer and Local PHP Security Checker
- Webpack-Encore
- If not already done, install Docker Compose
- Run
docker-compose build --pull --no-cache
to build fresh images - Run
docker-compose up -d
- Prefix all your commands with
./php
. Example :./php php -v
make install #Install the project
bin/console d:d:c #Create the database
bin/console d:m:m -n #Play the migrations (if there is any)
- Open
https://localhost:8000
in your favorite web browser - Run
docker-compose down --volumes --remove-orphans
to stop the Docker containers.
Once you've added some code, you can delete the first line of the make test
and uncomment the rest.
Created by Laurent Sanson.