README updates
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
## Introduction
|
## 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](#specialfeatures) section.
|
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](#special-features) section.
|
||||||
## Version
|
## Version
|
||||||
Mainline Version: **1.7.9**
|
Mainline Version: **1.7.9**
|
||||||
Stable Version: **1.6.2**
|
Stable Version: **1.6.2**
|
||||||
@@ -36,7 +36,7 @@ To pull a repository and specify a branch add the GIT_BRANCH environment variabl
|
|||||||
sudo docker run -e 'GIT_REPO=git@git.ngd.io:ngineered/ngineered-website.git' -e 'GIT_BRANCH=stage' -v /opt/ngddeploy/:/root/.ssh -p 8080:80 -d richarvey/nginx-php-fpm
|
sudo docker run -e 'GIT_REPO=git@git.ngd.io:ngineered/ngineered-website.git' -e 'GIT_BRANCH=stage' -v /opt/ngddeploy/:/root/.ssh -p 8080:80 -d richarvey/nginx-php-fpm
|
||||||
```
|
```
|
||||||
### Linking
|
### Linking
|
||||||
Linking to containers also exposes the linked container environment variables which is useful for configuring web apps:
|
Linking to containers also exposes the linked container environment variables which is useful for [templating](templating) and configuring web apps:
|
||||||
Run MySQL container with some extra details:
|
Run MySQL container with some extra details:
|
||||||
```bash
|
```bash
|
||||||
sudo docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=yayMySQL -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpress_user -e MYSQL_PASSWORD=wordpress_password -d mysql
|
sudo docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=yayMySQL -e MYSQL_DATABASE=wordpress -e MYSQL_USER=wordpress_user -e MYSQL_PASSWORD=wordpress_password -d mysql
|
||||||
|
|||||||
Reference in New Issue
Block a user