Sign inSign up

m2i3/nginx-php5

By m2i3

Updated over 8 years ago

Image
0

3.1K

m2i3/nginx-php5 repository overview

docker-nginx-php5

A Dockerfile which produces a docker image that runs Nginx with PHP5. Derived from [Painted-Fox/docker-nginx-php5]: https://github.com/Painted-Fox/docker-nginx-php5

Image Creation

$ sudo docker build -t m2i3/nginx-php5:latest .

Container Creation / Running

The Nginx server is configured to host a website from the /data folder inside the container. You can map the container's /data volume to a volume on the host so the data becomes independant of the running container.

This example uses /tmp/www to host from, but you can modify this to your needs.

$ mkdir -p /tmp/www
$ sudo docker run -p 80 -v /tmp/www:/data m2i3/nginx-php5:latest

Tag summary

Content type

Image

Digest

sha256:83dad773b

Size

209.5 MB

Last updated

over 8 years ago

docker pull m2i3/nginx-php5