Add documentation for scale parameter (#5065)

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2017-10-20 16:42:02 -07:00 committed by Misty Stanley-Jones
parent 6720ff0917
commit 995db08193
1 changed files with 14 additions and 0 deletions

View File

@ -932,6 +932,20 @@ port (a random host port will be chosen).
- "127.0.0.1:5000-5010:5000-5010"
- "6060:6060/udp"
### scale
> [Added in version 2.2 file format](compose-versioning.md#version-22)
Specify the default number of containers to deploy for this service. Whenever
you run `docker-compose up`, Compose will create or remove containers to match
the specified number. This value can be overridden using the
[`--scale`](/compose/reference/up.md) flag.
web:
image: busybox:latest
command: echo 'scaled'
scale: 3
### security_opt
Override the default labeling scheme for each container.