This will build the neccessary services (nginx and php-fpm) to serve php files.
The project directory will mount to /opt/app
.
docker-compose -p php -f docker-compose.yml up
The example php website should be accessible at http://localhost
Example docker-compose with nginx and php-fpm (php 7.2)
http://www.aww-some.com/blog/centos-7-docker-nginx-and-php-fpm-php-7.2/
This will build the neccessary services (nginx and php-fpm) to serve php files.
The project directory will mount to /opt/app
.
docker-compose -p php -f docker-compose.yml up
The example php website should be accessible at http://localhost
Example docker-compose with nginx and php-fpm (php 7.2)
http://www.aww-some.com/blog/centos-7-docker-nginx-and-php-fpm-php-7.2/