Update compose-file-v3.md

The docs says `deploy` does not work for `docker-compose`, however, the `deploy.resources` do work.

ref: https://sourcegraph.com/github.com/docker/compose@v2/-/blob/pkg/compose/create.go?L511-514
This commit is contained in:
QuantumGhost 2022-03-01 14:36:42 +08:00 committed by GitHub
parent d62a98d917
commit d0e96b140a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -659,10 +659,10 @@ services:
> Added in [version 3](compose-versioning.md#version-3) file format.
Specify configuration related to the deployment and running of services. This
only takes effect when deploying to a [swarm](../../engine/swarm/index.md) with
Specify configuration related to the deployment and running of services. The following
sub-options only takes effect when deploying to a [swarm](../../engine/swarm/index.md) with
[docker stack deploy](../../engine/reference/commandline/stack_deploy.md), and is
ignored by `docker-compose up` and `docker-compose run`.
ignored by `docker-compose up` and `docker-compose run`, except for `resources`.
```yaml
version: "{{ site.compose_file_v3 }}"