Docker PHP-FPM 7.0 & Nginx 1.9 on Alpine Linux
Example PHP-FPM 7.0 & Nginx 1.9 setup for Docker, built on Alpine Linux.
Includes many extensions - see Dockerfile
Docker Compose (1.6+) friendly. Expects files mounted to /srv/www/web to serve website properly.
- Includes a rewrite.conf below the web root to handle 301 redirects.
- Implements micro-caching
Usage
In docker-compose.yml:
web:
image: grokbot/alpine-php-nginx:latest
ports:
- '8080:80'
volumes:
- '/path/to/your/webfiles:/srv/www/web'
then
docker-compose up
and then open browser to http://localhost:8080
Resources & inspiration
Forked from: https://hub.docker.com/r/trafex/alpine-nginx-php7/
https://github.com/etopian/alpine-php-wordpress
License
MIT