Adding docker compose guide
This commit is contained in:
@@ -60,3 +60,4 @@ For more detailed examples and explanations please refer to the documentation.
|
||||
|
||||
## Guides
|
||||
- [Running in Kubernetes](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/guides/kubernetes.md)
|
||||
- [Using Docker Compose](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/guides/docker_compose.md)
|
||||
|
||||
28
docs/guides/docker_compose.md
Normal file
28
docs/guides/docker_compose.md
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
## Docker Compose Guide
|
||||
This guide will show you how to make a quick and easy docker compose file to get your container running using the compose tool.
|
||||
|
||||
|
||||
### Creating a copomse file
|
||||
Create a docker-compose.yml file with the following contents:
|
||||
|
||||
```
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
nginx-php-fpm:
|
||||
image: richarvey/nginx-php-fpm:latest
|
||||
restart: always
|
||||
environment:
|
||||
SSH_KEY: '<YOUR _KEY_HERE>'
|
||||
GIT_REPO: 'git@github.com:<YOUR_ACCOUNT>/<YOUR_REPO?.git'
|
||||
GIT_EMAIL: 'void@ngd.io'
|
||||
GIT_NAME: '<YOUR_NAME>'
|
||||
```
|
||||
You can of course expand on this and add volumes, or extra environment parameters as defined in the [config flags](../config_flags.md) documentation.
|
||||
|
||||
### Running
|
||||
To start the container simply run: ```docker-compose up -d```
|
||||
|
||||
### Clean Up
|
||||
To shut down the compose network and container runt he following command: ```docker-compose down```
|
||||
Reference in New Issue
Block a user