Environment for framework php such as laravel, cakephp, ... using docker with nginx, mysql
- install Docker-CE
- put your project into
htdocs
folder - if you use laravel framework, please remove
cake.conf
file or else removelaravel.conf
. And then rename toserver.conf
- I used this environment for cakephp and laravel, so can have error if use other framework. You can edit line 'root' and 'index' of file in
conf.d
folder or contact me.
docker-compose build
docker-compose up -d
http://localhost
http://localhost:8080