Update guides to use v2 config format.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
4de12ad7a1
commit
471264239f
4 changed files with 54 additions and 45 deletions
|
|
@ -95,16 +95,19 @@ Define a set of services using `docker-compose.yml`:
|
|||
1. Create a file called docker-compose.yml in your project directory and add
|
||||
the following:
|
||||
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- .:/code
|
||||
links:
|
||||
- redis
|
||||
redis:
|
||||
image: redis
|
||||
|
||||
version: '2'
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- .:/code
|
||||
depends_on:
|
||||
- redis
|
||||
redis:
|
||||
image: redis
|
||||
|
||||
This Compose file defines two services, `web` and `redis`. The web service:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue