- If not already done, install Docker Compose
- Run
cd dockerfiles/app/1.0 && docker build -t php_nginx_supervisor:1.0 .
to build fresh images - Run
export APP_USER_UID=$UID && docker-compose up
(the logs will be displayed in the current shell) - Then go to shell under
app user
and check versionscomposer --version
,php --version
,symfony version
and check requirementssymfony check:requirements
- Then go to shell and set git config
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
Then install symfony new app1 --webapp
Then remove composer remove symfony/webpack-encore-bundle
Then remove .git dir in app1
version: '3.4'
services:
symfony:
volumes:
- ${PWD}/conf/nginx/nginx.conf:/etc/nginx/nginx.conf
- ${PWD}/conf/nginx/app.conf:/etc/nginx/http.d/default.conf
- ${PWD}/conf/php/conf.d/symfony.dev.ini:/usr/local/etc/php/conf.d/symfony.ini
- ${PWD}/conf/php/php-fpm.d/zz-docker.conf:/usr/local/etc/php-fpm.d/zz-docker.conf
- ${PWD}/app:/var/www/html