Skip to content

A Dockerfile which produces a docker image that runs Nginx with PHP5.

License

Notifications You must be signed in to change notification settings

Painted-Fox/docker-nginx-php5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-nginx-php5

A Dockerfile which produces a docker image that runs Nginx with PHP5.

Image Creation

$ sudo docker build -t="paintedfox/nginx-php5" .

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 paintedfox/nginx-php5

About

A Dockerfile which produces a docker image that runs Nginx with PHP5.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages