Skip to content

nguyenngocanh94/php-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi PHP projects with a single docker compose

Stack: Nginx, PHP-FPM, MySQL, Postgres

Quick start

it is all in one docker-compose for php development. Follow these step to start.

  1. Run make script to start workspace
    sudo ./make.sh
  1. Clone project into App folder.

  2. 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.

  1. manually access into php8 container to run composer install and do some project setup commands (migrate, seed database ...)

  2. enjoy by access http://sitename.test

Note:

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published