[转]Blue-Green Deployment using Containers

Blue-Green Deployment using Containers


lb:
image: 'tutum/haproxy:latest'
restart: always
links:
- web-green
ports:
- '80:80'
roles:
- global

web-green:
image: 'borja/bluegreen:v1'
restart: always
target_num_containers: 3
deployment_strategy: high_availability

web-blue:
image: 'borja/bluegreen:v1'
restart: always
target_num_containers: 1
deployment_strategy: high_availability

Advertisements