it is all in one docker-compose for php development. Follow these step to start.
- Run make script to start workspace
sudo ./make.sh
-
Clone project into App folder.
-
Run init script to create project web.
# sudo ./init.sh laravel laravel/public
sudo ./init.sh {sitename} {index.php directory}
remember that name of folder is sitename.
-
manually access into
php8
container to runcomposer install
and do some project setup commands (migrate, seed database ...) -
enjoy by access http://sitename.test
Since the docker has already been installed xdebug, and config. so what we need is install xdebug helper on chrome, and setup xdebug config in PHPSTORM.
Un-tick the auto-detect IDE address, then put 10.254.254.254
if your computer is macbook.