A quick and easy way to setup your PHP application using Docker and docker-compose. This will setup a developement environment with PHP7-fpm, MariaDB and Nginx.
git clone git@github.com:shameerc/docker-php7.git
cd docker-php7
docker-compose up
├── app
│ └── public
│ └── index.php
├── database
├── docker-compose.yml
├── fpm
│ ├── Dockerfile
│ └── supervisord.conf
├── nginx
│ ├── Dockerfile
│ └── default.conf
appis the directory for project files. Our Nginx config is pointing toapp/public, which can be changed innginx/default.confdatabaseis where MariDB will store the database files.