From a6eb34f0181e29c7b761c39629fbf0a8bede6708 Mon Sep 17 00:00:00 2001 From: Victoria Bialas Date: Fri, 17 Feb 2017 15:00:07 -0800 Subject: [PATCH] added x-ref from scale reference to replicas in v3 Compose incorporated Joffrey's comments surface h1's in left menu on Compose file refs, fix liquid issue Signed-off-by: Victoria Bialas --- _layouts/docs.html | 1 - compose/reference/scale.md | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_layouts/docs.html b/_layouts/docs.html index 0c6c0fba4c..1e5fab10bf 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -301,7 +301,6 @@ ng\:form { {% endif %}
On this page:
{% 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 %}
{% endunless %} -
{{content}}
diff --git a/compose/reference/scale.md b/compose/reference/scale.md index fbf6b2b777..834a075869 100644 --- a/compose/reference/scale.md +++ b/compose/reference/scale.md @@ -13,3 +13,9 @@ Sets the number of containers to run for a service. Numbers are specified as arguments in the form `service=num`. For example: docker-compose scale web=2 worker=3 + +>**Tip:** Alternatively, in +[Compose file version 3.x](/compose/compose-file/index.md), you can specify +[`replicas`](/compose/compose-file/index.md#replicas) +under [`deploy`](/compose/compose-file/index.md#deploy) as part of the +service configuration for [Swarm mode](/engine/swarm/).