Includes linked containers for PHP, Nginx and Mysql.
Go to the directory where this repository was cloned.
E.g:
$ cd /var/www/docker-php$ docker-compose build$ docker-compose up [-d]-d to run in detached mode
$ docker exec -it containername_php_1 /bin/bash$ cd app
$ php composer.phar update$ ./bin/phpunit [--debug]http://localhost:8080/
127.0.0.1:32776
root:root
- php:7.2-fpm. To change PHP version, update docker/php/Dockerfile.
- nginx:stable. To change Nginx version, update docker/nginx/Dockerfile.
- mysql:5.7. To change Mysql version, update docker-compose.yml