Update deprecated syntax usage + minor text improvements (#20120)

* fix: update syntax to not use deprecated syntax

* docs: grammar/understandability changes
This commit is contained in:
Alex Ravenna 2024-05-30 11:59:37 +02:00 committed by GitHub
parent 62b30c7bbc
commit 3ec9c7dc1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -72,7 +72,7 @@ volumes:
If set to `true`:
- `external` specifies that this volume already exists on the platform and its lifecycle is managed outside
of that of the application. Compose doesn't then create the volume, and returns an error if the volume doesn't exist.
of that of the application. Compose then doesn't create the volume and returns an error if the volume doesn't exist.
- All other attributes apart from `name` are irrelevant. If Compose detects any other attribute, it rejects the Compose file as invalid.
In the example below, instead of attempting to create a volume called
@ -140,11 +140,11 @@ volumes:
Running `docker compose up` uses the volume called `my_volume_001`.
It can also be used in conjunction with the `external` property. This means the name of the volume used to lookup the actual volume on the platform is set separately from the name used to refer to it within the Compose file:
It can also be used in conjunction with the `external` property. This means the name used to look up the actual volume on the platform is set separately from the name used to refer to the volume within the Compose file:
```yml
volumes:
db-data:
external:
name: actual-name-of-volume
external: true
name: actual-name-of-volume
```