Skip to content

Commit 15dc27f

Browse files
Merge pull request docker#1837 from londoncalling/more-compose-ref-updates
added x-ref from scale reference to replicas in v3 Compose
2 parents c1c54ed + a6eb34f commit 15dc27f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

_layouts/docs.html

-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@
301301
{% endif %}
302302
<div id="side-toc"><div id="side-toc-title">On this page:</div><div id="side-toc-contents">{% include toc_pure_liquid.html html=my_content sanitize=true class="inline_toc" id="my_toc" toc_min=my_min toc_max=my_max page_name=my_name %}</div></div>
303303
{% endunless %}
304-
<div>{{content}}</div>
305304
</section>
306305
</div>
307306
</div>

compose/reference/scale.md

+6
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ Sets the number of containers to run for a service.
1313
Numbers are specified as arguments in the form `service=num`. For example:
1414

1515
docker-compose scale web=2 worker=3
16+
17+
>**Tip:** Alternatively, in
18+
[Compose file version 3.x](/compose/compose-file/index.md), you can specify
19+
[`replicas`](/compose/compose-file/index.md#replicas)
20+
under [`deploy`](/compose/compose-file/index.md#deploy) as part of the
21+
service configuration for [Swarm mode](/engine/swarm/).

0 commit comments

Comments
 (0)