docker-compose setup to run php5.6 or php7 with php-fpm via nginx and mysql. Connecting from php on a mysql database still fails. Not sure why.
Create the ultimate development environment
- Install docker and docker-compose rename the docker-compose file for your requirement
rename the docker-compose file for your need
$ git clone [email protected]:aaronleslie/docker-compose-php.git
$ cd docker-compose-php
$ docker-compose build
$ docker-compose up -d
By default the setup creates a php7 environment
Open url http://localhost and you will see a phpinfo page