This repository acts as a skeleton for setting up new applications using PHP-FPM and Nginx which are executed inside Docker.
- PHP 8.0 setup (including Xdebug and correct permissions for write files for PHP process)
- Nginx setup, including redirecting every request to index.php (useful for PHP frameworks).
- Script for running the Composer.
- Script-wrapper to run console scripts within php-fpm container.
- MySQL container setup
- Download repository files (more preferable via Zip file, if you want to keep your our application under source control)
- Go to repository folder
sh setup.shsh composer.sh init(if you want to use Composer).- Install your application inside
appfolder. - Run
docker-compose up. - ...Congratulations! You can now access your application via http://localhost .
You can run arbitrary console commands within PHP-FPM container using handy script:
./run-scipt.sh your-script-name with argumentsExample:
./run-script.sh bin/console