Skip to content

Docker's image for Nginx with special configuration to linking with PHP5-FPM container

License

Notifications You must be signed in to change notification settings

tsunammis/docker-nginx-phpfpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx for PFP-FPM with Docker

Introduction

This image contain only nginx, it is designed to work solely with PHP-FPM, you can use the container stan/php-fpm.

How to use this image

Pull the image from Docker Hub

docker pull stan/nginx-phpfpm

Start a nginx instance, you have to link a container which contain PHP-FPM on port 9000, it have to be linked with alias 'phpfpm'.

docker run -d --name nginx-phpfpm --link your-container-phpfpm:phpfpm stan/nginx-phpfpm

Start a nginx instance with a volume mapped with document root of nginx (same volume as PHP-FPM container)

docker run -d --name nginx --link your-container-phpfpm:phpfpm -v /your/php/project:/var/www stan/nginx-phpfpm

Start stan/php-fpm container and the web server container (nginx)

docker run -d --name php54 -v /your/php/project:/var/www stan/php-fpm
docker run -d --name nginx -p 80:80 --link php54:phpfpm -v /your/php/project:/var/www stan/nginx-phpfpm 

Feedback

Issues

If you have any problems with or questions about this image, please contact us through an issue.

Contributing

You are invited to contribute new features, fixes or updates, large or small, we are always trilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through an issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

About

Docker's image for Nginx with special configuration to linking with PHP5-FPM container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages