mirror of https://github.com/docker/compose.git
Merge pull request #2819 from bfirsh/improve-names-in-compose-file-2-example
Improve names in Compose file 2 example
This commit is contained in:
commit
422ff623b4
|
@ -864,21 +864,21 @@ A more extended example, defining volumes and networks:
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
networks:
|
networks:
|
||||||
- front
|
- front-tier
|
||||||
- back
|
- back-tier
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis
|
||||||
volumes:
|
volumes:
|
||||||
- data:/var/lib/redis
|
- redis-data:/var/lib/redis
|
||||||
networks:
|
networks:
|
||||||
- back
|
- back-tier
|
||||||
volumes:
|
volumes:
|
||||||
data:
|
redis-data:
|
||||||
driver: local
|
driver: local
|
||||||
networks:
|
networks:
|
||||||
front:
|
front-tier:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
back:
|
back-tier:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue