A quick way to build a PHP development environment using Docker: PHP-FPM, Nginx, MySQL and phpMyAdmin.
git clone https://github.com/adrianoramos/php-dev-in-docker.git
cd php-dev-in-docker/
docker-compose build
docker-compose up -dCheck out localhost or 127.0.0.1 in your browser or access the IP address specified in your Docker Machine (Windows and Mac only). You must see the PHP info page located in the src directory.
To access phpMyAdmin open the 8080 port in your browser, eg: localhost:8080. Log in using root as username and password.
docker-compose stopdocker-compose kill