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
|
|
@ -72,17 +72,19 @@ and a `docker-compose.yml` file.
|
|||
|
||||
9. Add the following configuration to the file.
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
web:
|
||||
build: .
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
volumes:
|
||||
- .:/code
|
||||
ports:
|
||||
- "8000:8000"
|
||||
links:
|
||||
- db
|
||||
version: '2'
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
web:
|
||||
build: .
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
volumes:
|
||||
- .:/code
|
||||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
This file defines two services: The `db` service and the `web` service.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue