Dockerfile for a minimal PHP-FPM-enabled installation of NGINX on Ubuntu
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
Dockerfile
LICENSE
README.md
supervisord.conf

README.md

mcskinner/nginx-php

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.

Base Docker Image

Usage

# 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