Improve some of the .yml options docs

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2014-07-12 09:55:11 -07:00
parent 36bef254ff
commit 197fd77b99
1 changed files with 12 additions and 2 deletions

View File

@ -74,10 +74,11 @@ expose:
### volumes
Map volumes from the host machine (`HOST:CONTAINER`).
Mount paths as volumes, optionally specifying a path on the host machine (`HOST:CONTAINER`).
```
volumes:
- /var/lib/mysql
- cache/:/tmp/cache
```
@ -93,12 +94,18 @@ volumes_from:
### environment
Add environment variables. Environment variables with only a key are resolved to values on the host machine, which can be helpful for secret or host-specific values.
Add environment variables. You can use either an array or a dictionary.
Environment variables with only a key are resolved to their values on the machine Fig is running on, which can be helpful for secret or host-specific values.
```
environment:
RACK_ENV: development
SESSION_SECRET:
environment:
- RACK_ENV=development
- SESSION_SECRET
```
### net
@ -106,5 +113,8 @@ environment:
Networking mode. Use the same values as the docker client `--net` parameter.
```
net: "bridge"
net: "none"
net: "container:[name or id]"
net: "host"
```