Skip to content

Latest commit

 

History

History
 
 

php_fpm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Docker PHP-FPM

This Dockerfile builds the Docker Library php-fpm image (php:5-fpm) with gd, mcrypt and iconv support.

Build

Build from Dockerfile:

docker build -t php_fpm .

Run

Make sure to include the volume from the nginx container that contains the php files:

docker run -d --name php_fpm_run --volumes-from nginx_run php_fpm

Usage

Example link from an nginx container.

docker run -d -p 80:80 -p 443:443 --link php_fpm_run -v /srv:/srv -v /etc/localtime:/etc/localtime:ro --name nginx_run nginx