-
-
Notifications
You must be signed in to change notification settings - Fork 852
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ric Harvey
committed
Feb 17, 2017
1 parent
df8d254
commit 59e4b25
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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``` |