Just a quick and easy way to get PHP up and running on evyerthing that runs Docker.
Let's assume you have an awesome project! Let's wrap a docker container around it to make it platform independent
docker run -it -v $PWD:/var/www/html/ -p 8080:80 xantios/phpdevOpen your favorite browser and go to: http://localhost:8080
| Service | Config |
|---|---|
| Nginx | vhost.conf in this repo, easy as could be |
| php-fpm | listens on port 9000, feel free to add -p 9000:9000 to the docker command to access it from outside of the container |
| php | CLI has xdebug enabled |
| xdebug | see xdebug.ini |
| Maple | To run nginx and php-fpm |
Feel free! if you have any valuable addition please PR!
Clone this repo, do whatever you want to do and run the included build.sh script