Skip to content

Instantly share code, notes, and snippets.

@dbones
Last active December 4, 2015 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbones/86a59084102cd9c9a02b to your computer and use it in GitHub Desktop.
Save dbones/86a59084102cd9c9a02b to your computer and use it in GitHub Desktop.
dev database setup
DocumentLb:
ports:
- 5984:5984
labels:
io.rancher.scheduler.affinity:host_label: server=proxy
tty: true
image: rancher/load-balancer-service
links:
- Document:Document
stdin_open: true
index:
labels:
io.rancher.scheduler.affinity:container_ne: index
io.rancher.scheduler.affinity:host_label: server=stateful
tty: true
image: elasticsearch
stdin_open: true
Document:
labels:
io.rancher.scheduler.affinity:container_ne: document
io.rancher.scheduler.affinity:host_label: server=stateful
tty: true
image: klaemo/couchdb
stdin_open: true
indexLb:
ports:
- 9200:9200
- 9300:9300/tcp
labels:
io.rancher.scheduler.affinity:host_label: server=proxy
tty: true
image: rancher/load-balancer-service
links:
- index:index
stdin_open: true
Queue:
labels:
io.rancher.scheduler.affinity:container_ne: queue
io.rancher.scheduler.affinity:host_label: server=stateful
tty: true
image: rabbitmq:management
stdin_open: true
QueueLb:
ports:
- 15672:15672
- 5672:5672/tcp
labels:
io.rancher.scheduler.affinity:host_label: server=proxy
tty: true
image: rancher/load-balancer-service
links:
- Queue:Queue
stdin_open: true
DocumentLb:
scale: 1
load_balancer_config: {}
index:
scale: 1
health_check:
port: 9200
interval: 2000
unhealthy_threshold: 3
request_line: GET / HTTP/1.0
healthy_threshold: 2
response_timeout: 2000
Document:
scale: 1
health_check:
port: 5984
interval: 2000
unhealthy_threshold: 3
request_line: GET /_utils HTTP/1.0
healthy_threshold: 2
response_timeout: 2000
indexLb:
scale: 1
health_check:
port: 42
interval: 2000
unhealthy_threshold: 3
healthy_threshold: 2
response_timeout: 2000
Queue:
scale: 1
QueueLb:
scale: 1
load_balancer_config: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment