Clone the repository in folder do you prefer
cd /var/www
git clone https://github.com/luk4z7/docker-build-php7-fpm-nginx
Configure your dns if necessary in file resolv.conf
before build, default is:
nameserver 8.8.8.8
Execute the file init.sh
for up the docker containers
https://github.com/luk4z7/docker-build-php7-fpm-nginx
Environment Ubuntu, php7-fpm and nginx
_ _ _ _ _ _
__| | ___ ___| | _____ _ __ | |__ _ _(_) | __| |
/ _` |/ _ \ / __| |/ / _ \ '__|____| '_ \| | | | | |/ _` |
| (_| | (_) | (__| < __/ | |_____| |_) | |_| | | | (_| |
\__,_|\___/ \___|_|\_\___|_| |_.__/ \__,_|_|_|\__,_|
php7, nginx
DOCKER
Generate new containers ? [ 1 ]
Delete all containers ? [ 2 ]
Start new build ? [ 3 ]
First step
Start new build [ 3 ]
Second step
Generate new containers [ 1 ]
Access log of an single container
docker logs php7 -f
Xdebug is disabled by default, by questions of performance when executing composer
, for enable xdebug only execute one alias created on build, php_xdebug
, for example when execute your tests with phpunit
, because is necessary for to generate your tests coverage.
php_xdebug vendor/bin/phpunit