Deploying stacks

There are two ways to deploy your applications with UCP, which are analogous to deploying individual services with docker service create, and deploying a full compose file with docker stack deploy. Stacks are the easiest to deploy and will let you use a compose file that you've verified in pre-production environments.

In the source code for this chapter, the folder ch08-docker-stack contains the deployment manifests to run NerdDinner on Docker Enterprise, using swarm mode. The core docker-compose.yml file is the same as the one mentioned in Chapter 7, Orchestrating Distributed Solutions with Docker Swarm, but there are some changes in the override file to deploy to my production cluster. I'm taking advantage of the hybrid ...

Get Docker on Windows - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.