November 2017
Intermediate to advanced
298 pages
7h 10m
English
As it was pretty obvious from just a few paragraphs before, a manual setup of these services seems somewhat of a pain, so here we introduce a new tool that can help us do this much easier: Docker Stack. This tool uses a YAML file to get things to deploy all the services easily and repeatedly.
First we will clean up our old exercise before trying to use Docker stack configuration:
$ docker service ls -q | xargs docker service rmpilssv8du68rpue2ant1lg2uswi95q7z38i2$ docker network rm service_networkservice_network
Now we can write our YAML configuration file--you can easily notice the parallels that the CLI has to this configuration file:
Read now
Unlock full access