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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.