From 2ca8c07a1947a7503a2979de7ffdfba98be00342 Mon Sep 17 00:00:00 2001 From: "Drew G. Wallace" <32915923+drewgwallace@users.noreply.github.com> Date: Mon, 7 May 2018 15:23:45 -0700 Subject: [PATCH] Update deploy key with URL reference and modify (#410) --- beginner/chapters/votingapp.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beginner/chapters/votingapp.md b/beginner/chapters/votingapp.md index c90d5ef..08df9ca 100644 --- a/beginner/chapters/votingapp.md +++ b/beginner/chapters/votingapp.md @@ -164,7 +164,7 @@ Take a look at the file again. You'll see it starts with ``` version: "3" ``` -It's important that you use version 3 of compose files, as `docker stack deploy` won't support use of earlier versions. You will see there's also a `services` key, under which there is a separate key for each of the services. Such as: +It's important that you use [version 3](https://docs.docker.com/compose/compose-file/) of compose files, as `docker stack deploy` won't support use of earlier versions. You will see there's also a `services` key, under which there is a separate key for each of the services. Such as: ``` vote: image: dockersamples/examplevotingapp_vote:before @@ -186,7 +186,7 @@ The `image` key there specifies which image you can use, in this case the image Much like `docker run` you will see you can define `ports` and `networks`. There's also a `depends_on` key which allows you to specify that a service is only deployed after another service, in this case `vote` only deploys after `redis`. -The `deploy` key is new in version 3. It allows you to specify various properties of the deployment to the Swarm. In this case, you are specifying that you want two replicas, that is two containers are deployed on the Swarm. You can specify other properties, like when to restart, what [healthcheck](https://docs.docker.com/engine/reference/builder/#healthcheck) to use, placement constraints, resources. +The [`deploy`](https://docs.docker.com/compose/compose-file/#deploy) key is new in version 3. It allows you to specify various properties of the deployment to the Swarm. In this case, you are specifying that you want two replicas, that is two containers are deployed on the Swarm. You can specify other properties, like when to restart, what [healthcheck](https://docs.docker.com/engine/reference/builder/#healthcheck) to use, placement constraints, resources, etc. #### Test run