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 ### volumes
Map volumes from the host machine (`HOST:CONTAINER`). Mount paths as volumes, optionally specifying a path on the host machine (`HOST:CONTAINER`).
``` ```
volumes: volumes:
- /var/lib/mysql
- cache/:/tmp/cache - cache/:/tmp/cache
``` ```
@ -93,12 +94,18 @@ volumes_from:
### environment ### 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: environment:
RACK_ENV: development RACK_ENV: development
SESSION_SECRET: SESSION_SECRET:
environment:
- RACK_ENV=development
- SESSION_SECRET
``` ```
### net ### net
@ -106,5 +113,8 @@ environment:
Networking mode. Use the same values as the docker client `--net` parameter. Networking mode. Use the same values as the docker client `--net` parameter.
``` ```
net: "bridge"
net: "none"
net: "container:[name or id]"
net: "host" net: "host"
``` ```