Difference between revisions of "Docker-compose: volumes:"
Jump to navigation
Jump to search
↑ https://docs.docker.com/compose/compose-file/#volumes
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 11: | Line 11: | ||
o: "addr=10.40.0.199,nolock,soft,rw" | o: "addr=10.40.0.199,nolock,soft,rw" | ||
device: ":/docker/example" | device: ":/docker/example" | ||
+ | |||
+ | https://docs.docker.com/compose/compose-file/#volumes#external | ||
+ | volumes: | ||
+ | data: | ||
+ | external: true | ||
== See also == | == See also == |
Revision as of 07:26, 4 March 2020
Docker compose file: docker-compose.yml
volumes: [1]
Examples
https://docs.docker.com/compose/compose-file/#volumes#driver_opts
volumes: example: driver_opts: type: "nfs" o: "addr=10.40.0.199,nolock,soft,rw" device: ":/docker/example"
https://docs.docker.com/compose/compose-file/#volumes#external
volumes: data: external: true
See also
docker-compose
,docker-compose.yml
: [services
|volumes
|networks
|up
|down
|restart
|logs
|create
|changelog
|version
|secrets
|config
|-v
|-h
|exec], docker-compose pull
,Environment:
, Docker-compose.yml examples,.env
, release notes, expose:, docker-compose --env-file,services.deploy.resources
- Docker Volumes
Advertising: