Skip to content

Instantly share code, notes, and snippets.

@borjaburgos
Created June 6, 2015 18:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save borjaburgos/de354401987e7f4f2d09 to your computer and use it in GitHub Desktop.
Save borjaburgos/de354401987e7f4f2d09 to your computer and use it in GitHub Desktop.
ContainerDays
lb:
image: 'tutum/haproxy:latest'
autorestart: always
links:
- web-green
ports:
- '80:80'
roles:
- global
deployment_strategy: high_availability
redis:
image: 'tutum/redis:latest'
autorestart: always
environment:
- REDIS_PASS=password
web-blue:
image: 'borja/containerdays:v1'
autorestart: always
links:
- redis
target_num_containers: 1
deployment_strategy: high_availability
web-green:
image: 'borja/containerdays:v1'
autorestart: always
links:
- redis
target_num_containers: 3
deployment_strategy: high_availability
lb:
image: 'tutum/haproxy:latest'
autorestart: always
links:
- web
ports:
- '80:80'
roles:
- global
deployment_strategy: high_availability
redis:
image: 'tutum/redis:latest'
autorestart: always
environment:
- REDIS_PASS=password
web:
image: 'borja/web'
autorestart: always
links:
- redis
target_num_containers: 6
deployment_strategy: high_availability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment