mirror of
https://github.com/docker/docs.git
synced 2026-04-12 14:25:46 +07:00
* ENGDOCS-2080b * ENGDOCS-2080b * Update content/compose/compose-file/05-services.md Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --------- Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
438 B
438 B
The volumes attribute define mount host paths or named volumes that are accessible by service containers. You can use volumes to define multiple types of mounts; volume, bind, tmpfs, or npipe.
If the mount is a host path and is only used by a single service, it can be declared as part of the service
definition. To reuse a volume across multiple services, a named
volume must be declared in the volumes top-level element.