Skip to content
master
Go to file
Code
This branch is 45 commits ahead, 2 commits behind darron:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

docker-nginx-php5

A Dockerfile to create a Docker image with nginx and php5-fpm

This was created using this blog post and lots of Googling.

It's posted on the Docker INDEX at ishakuta/docker-nginx-php5

Some size research on docker folders: docker folders size with this image and stackbrew base images

To build:

git clone https://github.com/ishakuta/docker-nginx-php5.git
cd docker-nginx-php5
docker build -t <yournamehere>/nginx .

You can then run the built image: docker run -d <yournamehere>/nginx-php5-fpm

You should see a running image if you run docker ps

vagrant@ubuntu-13:~$ docker run -d <yournamehere>/nginx-php5-fpm
6592bc4c0193
vagrant@ubuntu-13:~$ docker ps
ID                  IMAGE                 COMMAND                CREATED             STATUS              PORTS
6592bc4c0193        <yournamehere>/docker-nginx-php5:latest   /bin/sh -c service p   2 seconds ago       Up 1 seconds        49153->80

To serve another site - you can layer on top of this - here's an example Dockerfile:

FROM ishakuta/docker-nginx-php5

# Build your new site here. 
RUN echo "Site 123 ABC" > /var/www/index.php
RUN echo "<?php phpinfo(); ?>" >> /var/www/index.php
 
EXPOSE 80
 
CMD service php5-fpm start && nginx

About

A Dockerfile to create a Docker image with nginx and php5-fpm

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.