File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2056,8 +2056,8 @@ Volumes are persistent data stores implemented by the platform. The Compose spec
20562056for services to mount volumes, and configuration parameters to allocate them on infrastructure.
20572057
20582058The `volumes` section allows the configuration of named volumes that can be reused across multiple services. Here's
2059- an example of a two-service setup where a database's data directory is shared with another service as a volume so
2060- that it can be periodically backed up :
2059+ an example of a two-service setup where a database's data directory is shared with another service as a volume named
2060+ `db-data` so that it can be periodically backed up :
20612061
20622062` ` ` yml
20632063services:
@@ -2106,8 +2106,8 @@ of that of the application. Compose implementations MUST NOT attempt to create t
21062106do not exist.
21072107
21082108In the example below, instead of attempting to create a volume called
2109- ` {project_name}_data ` , Compose looks for an existing volume simply
2110- called `data` and mount it into the `db ` service's containers.
2109+ ` {project_name}_db-data ` , Compose looks for an existing volume simply
2110+ called `db- data` and mounts it into the `backend ` service's containers.
21112111
21122112` ` ` yml
21132113services:
You can’t perform that action at this time.
0 commit comments