This is a dockerfile based on Alpine Linux to run PHP and Nginx together.
To create a basic server, with nginx configs mounted at /config on the host, with the root directory mounted at /webroot on the host, use:
docker run -d -p 80:80 -v /webroot:/var/www -v /config:/etc/nginx/conf.d adamant/nginx-php
This repo is already configured to accept custom Nginx configs and locations.
You must include the line
include /etc/nginx/common.conf; within the server block to make sure PHP is configured correctly. For a basic example of this, see default.conf