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:
|
||||
|
||||
version: '2.0'
|
||||
version: '3'
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- .:/code
|
||||
- logvolume01:/var/log
|
||||
- .:/code
|
||||
- logvolume01:/var/log
|
||||
links:
|
||||
- redis
|
||||
- redis
|
||||
redis:
|
||||
image: redis
|
||||
volumes:
|
||||
|
|
Loading…
Reference in New Issue