This repo is a template for setting up a local php development environment using:
- Docker
- Nginx
- PHP
- MySql
For PHP, we demo with a Laravel ver 9 application, following this awesome tutorial https://www.youtube.com/watch?v=AGE3wRKljkw
-
If you want to access MySql database using 3rd-party tool like TablePlus, DataGrid, you should use port
33060(not the default3306). If you want to change it, head todocker-compose.ymland update the port mapping ofdbservice. -
The
_server/etcis where I store configuration files of PHP, FPM and Nginx. -
There is a
_server/README.mdwhere you can see some notes for these configurations. -
The
_server/varis generated when we start the system.- The
_server/var/libis where Mysql Database is stored. - The
_server/var/logis where I recieve log files. - The
_server/var/runis where the socket connection between Nginx and Php FPM is stored.
- The