This git provides a docker infrastructure for Symfony for development.
You can modify PHP version, mySQL version, mySQL credentials and Apache HTTP port in the /.env environment file. When you download this branch please create your environment settings. Don't forget to create mysql root and dev user passwords.
$ cp .env.dist .env
After modification please run
$ docker-compose build
First start the docker containers:
$ docker-compose up -d
Then enter the php_web container with the dev user to install Symphony 4 with composer: (Symfony not allows to install with root user)
$ docker exec -u dev -it php_web bash
Change directory to /var/www where is the mapped site folder and please run the standard composer command to install all the necessary codes. Important: always use the word site as the directory parameter.
$ cd /var/www
$ composer create-project symfony/website-skeleton site
In your code editor you will see the /site folder contains all the Symfony codes. This folder mapped to the /var/www/site path.