Update docs to define and document new compose.yml file format

Add volume configuration reference section.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2015-11-18 17:45:10 -08:00
commit b253efd8a7
2 changed files with 102 additions and 10 deletions

View file

@ -31,16 +31,22 @@ they can be run together in an isolated environment.
A `docker-compose.yml` looks like this:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
links:
- redis
redis:
image: redis
version: 2
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
- logvolume01:/var/log
links:
- redis
redis:
image: redis
volumes:
logvolume01:
driver: default
For more information about the Compose file, see the
[Compose file reference](compose-file.md)