Sign inSign up

xantios/phpdev

By xantios

•Updated about 5 years ago

Just a quick and easy PHP box with nginx, php-fpm and xdebug setup and ready to go

Image
0

901

xantios/phpdev repository overview

⁠PHPDev

Just a quick and easy way to get PHP up and running on evyerthing that runs Docker.

⁠Docker Speed run

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/phpdev

⁠Cool and now what?

Open your favorite browser and go to: http://localhost:8080⁠

⁠Nice! How is this setup?

ServiceConfig
Nginxvhost.conf in this repo, easy as could be
php-fpmlistens on port 9000, feel free to add -p 9000:9000 to the docker command to access it from outside of the container
phpCLI has xdebug enabled
xdebugsee xdebug.ini
Maple⁠To run nginx and php-fpm

⁠I Want to customize it!

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

Tag summary

Content type

Image

Digest

Size

287.5 MB

Last updated

about 5 years ago

docker pull xantios/phpdev