mirror of https://github.com/docker/docs.git
Merge pull request #11250 from sohmil97/patch-1
update docker-compose version
This commit is contained in:
commit
8f2327a1aa
|
@ -30,17 +30,17 @@ so they can be run together in an isolated environment.
|
||||||
|
|
||||||
A `docker-compose.yml` looks like this:
|
A `docker-compose.yml` looks like this:
|
||||||
|
|
||||||
version: '2.0'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
- logvolume01:/var/log
|
- logvolume01:/var/log
|
||||||
links:
|
links:
|
||||||
- redis
|
- redis
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue