Skip to content

Instantly share code, notes, and snippets.

@lgs
Forked from lazypower/registrator-reverse-proxy.yaml
Last active August 29, 2015 14:27
Show Gist options
  • Save lgs/2474d5a09f2f8cdf3ed0 to your computer and use it in GitHub Desktop.
Save lgs/2474d5a09f2f8cdf3ed0 to your computer and use it in GitHub Desktop.
consul-stack:
series: trusty
services:
haproxy:
charm: "local:trusty/haproxy"
etcd:
charm: "local:trusty/etcd"
num_units: 3
to: [0, docker, docker]
registrator:
charm: "local:trusty/registrator"
docker:
charm: "local:trusty/docker"
num_units: 1
options:
latest: true
heka-sub:
charm: "local:trusty/heka-sub"
options:
juju_agent: true
heka-hub:
charm: "local:trusty/heka-hub"
num_units: 1
to: 0
options:
rstout: true
jujud_logs: true
juju_agent: true
consul:
charm: "local:trusty/consul"
num_units: 3
to: [docker]
options:
bootstrap-expect: 1
relations:
- ["heka-sub:docker_logging", "docker:logging"]
- ["heka-sub:heka_out", "heka-hub:heka_in"]
- ["heka-sub:heka_out", "heka-hub:heka_in"]
- ["registrator", "docker"]
- ["registrator:consul-api", "consul:api"]
- ["registrator:etcd-api", "etcd:client"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment