Skip to main content

Posts

Showing posts from February 9, 2018

Update's in Docker Compose V3

What’s new in Docker Compose v3 In this blog, we’ll discuss new features added in Docker Compose v3. Docker compose added the feature of stack deployment with swarm. To achieve this, we need to create a file named, docker-stack.yml and specify the deploy key, which would allow you to specify various properties of a swarm deployment in docker-stack.yml file. For deploying this, you simply need to run the docker-stack deploy command with this docker-stack.yml file to pull the referenced images and launch the services in a swarm as configured in the  .yml . deploy key The deploy key allows you to specify configuration related to the deployment and running of services. The deploy key can also be used to constrain some services to run only on the manager node. Specify configuration related to the deployment and running of services. This only takes effect when deploying to a swarm cluster with `docker stack deploy` command and is ignored by docker-compose up and d