This repository contains a Dockerfile to add PHP-FPM support to an underlying NGINX image.
Hat tip to eugeneware/docker-wordpress-nginx for providing a solid starting point. Most notably, the configuration for Supervisor was indispensable.
For more detail on how this works, visit blog.mcskinner.com.
# Serve the NGINX boilerplate content.
docker run -d -p 80:80 mcskinner/nginx-php
# Serve your own site.
docker run -d -p 80:80 \
-v $(pwd)/example/sites-enabled:/etc/nginx/sites-enabled \
-v $(pwd)/example/php:/var/www/html \
mcskinner/nginx-php