mirror of https://github.com/docker/compose.git
Readme should use new docker compose format instead of the old one
Signed-off-by: Callum Rogers <callumrogers@hotmail.co.uk>
This commit is contained in:
parent
e2cb7b0237
commit
e71c62b8d1
21
README.md
21
README.md
|
@ -22,16 +22,17 @@ they can be run together in an isolated environment:
|
||||||
|
|
||||||
A `docker-compose.yml` looks like this:
|
A `docker-compose.yml` looks like this:
|
||||||
|
|
||||||
web:
|
version: '2'
|
||||||
build: .
|
|
||||||
ports:
|
services:
|
||||||
- "5000:5000"
|
web:
|
||||||
volumes:
|
build: .
|
||||||
- .:/code
|
ports:
|
||||||
links:
|
- "5000:5000"
|
||||||
- redis
|
volumes:
|
||||||
redis:
|
- .:/code
|
||||||
image: redis
|
redis:
|
||||||
|
image: redis
|
||||||
|
|
||||||
For more information about the Compose file, see the
|
For more information about the Compose file, see the
|
||||||
[Compose file reference](https://github.com/docker/compose/blob/release/docs/compose-file.md)
|
[Compose file reference](https://github.com/docker/compose/blob/release/docs/compose-file.md)
|
||||||
|
|
Loading…
Reference in New Issue