PHP Dev in Docker
A quick way to build a PHP development environment using Docker: PHP-FPM, Nginx, MySQL and phpMyAdmin.
What's included
Requirements
Clone, Build and Run
git clone https://github.com/adrianoramos/php-dev-in-docker.git
cd php-dev-in-docker/
docker-compose build
docker-compose up -d
Check 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.
Stop
docker-compose stop
Kill
docker-compose kill