From dcf6cd77bf0a5158935f504e8a49567ef977dbfa Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Wed, 28 Jan 2015 15:19:39 +0000 Subject: [PATCH] Adding extra info to README and syntax fix --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdd182d..6bb7daf 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,14 @@ ## Introduction This is a Dockerfile to build a container image for nginx and php-fpm, with the ability to pull website code from git. The container can also use environment variables to configure your web application using the templating detailed in the special features section. -## Git reposiory +### Git reposiory The source files for this project can be found here: [https://github.com/ngineered/nginx-php-fpm](https://github.com/ngineered/nginx-php-fpm) If you have any improvements please submit a pull request. +### Docker hub repository +The Docker hub build can be found here: [https://registry.hub.docker.com/u/richarvey/nginx-php-fpm/](https://registry.hub.docker.com/u/richarvey/nginx-php-fpm/) + ## Nginx Versions - Mainline Version: **1.7.9** - Stable Version: **1.6.2** @@ -76,10 +79,11 @@ MYSQL_PORT_3306_TCP_ADDR=172.17.0.236 MYSQL_ENV_MYSQL_MAJOR=5.6 MYSQL_PORT=tcp://172.17.0.236:3306 -``` -To link the container launch like this: ``` +To link the container launch like this: + +``` sudo docker run -e 'GIT_REPO=git@git.ngd.io:ngineered/ngineered-website.git' -v /opt/ngddeploy/:/root/.ssh -p 8080:80 --link some-mysql:mysql -d richarvey/nginx-php-fpm ``` ### Enabling SSL or Special Nginx Configs @@ -88,7 +92,7 @@ As with all docker containers its possible to link resources from the host OS to Then start your container and connect these volumes like so: ``` -sudo docker run -e 'GIT_REPO=git@git.ngd.io:ngineered/ngineered-website.git' -v /opt/ngddeploy/:/root/.ssh -**v /opt/deployname/ssl:/etc/nginx/ssl -v /opt/deplyname/sites-enabled:/etc/nginx/sites-enabled** -p 8080:80 --link some-mysql:mysql -d richarvey/nginx-php-fpm +sudo docker run -e 'GIT_REPO=git@git.ngd.io:ngineered/ngineered-website.git' -v /opt/ngddeploy/:/root/.ssh -v /opt/deployname/ssl:/etc/nginx/ssl -v /opt/deplyname/sites-enabled:/etc/nginx/sites-enabled -p 8080:80 --link some-mysql:mysql -d richarvey/nginx-php-fpm ``` ## Special Features