Skip to content

Instantly share code, notes, and snippets.

@zambon
Last active October 7, 2016 23:11
Show Gist options
  • Save zambon/f1644b579117c05d3feca8d19ea6b90e to your computer and use it in GitHub Desktop.
Save zambon/f1644b579117c05d3feca8d19ea6b90e to your computer and use it in GitHub Desktop.
Quick n' dirty Docker registry Rancher stack
lb:
expose:
- "5000:5000"
tty: true
image: rancher/load-balancer-service
links:
- registry:registry
stdin_open: true
registry:
image: registry:2
lb:
scale: 1
load_balancer_config:
haproxy_config: {}
health_check:
port: 42
interval: 2000
unhealthy_threshold: 3
strategy: recreate
response_timeout: 2000
healthy_threshold: 2
registry:
health_check:
port: 5000
interval: 2000
initializing_timeout: 5000
unhealthy_threshold: 3
strategy: recreate
healthy_threshold: 2
response_timeout: 2000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment