Skip to content

Commit cf9408e

Browse files
mbrodalandeloof
authored andcommitted
Use volume names from examples in explanation
Signed-off-by: Mathias Brodala <[email protected]>
1 parent 5a48509 commit cf9408e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

spec.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2056,8 +2056,8 @@ Volumes are persistent data stores implemented by the platform. The Compose spec
20562056
for services to mount volumes, and configuration parameters to allocate them on infrastructure.
20572057

20582058
The `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
20632063
services:
@@ -2106,8 +2106,8 @@ of that of the application. Compose implementations MUST NOT attempt to create t
21062106
do not exist.
21072107

21082108
In 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
21132113
services:

0 commit comments

Comments
 (0)