Skip to content

Instantly share code, notes, and snippets.

@tobowers
Created August 7, 2015 17:40
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 tobowers/2bd1ebac14be0cf0a10f to your computer and use it in GitHub Desktop.
Save tobowers/2bd1ebac14be0cf0a10f to your computer and use it in GitHub Desktop.
ambassador0:
image: cpuguy83/docker-grand-ambassador
volumes:
- /var/run/docker.sock:/docker.sock
command:
- -name=vault_etcd0_1
- -wait=true
- -sock=/docker.sock
ambassador1:
image: cpuguy83/docker-grand-ambassador
volumes:
- /var/run/docker.sock:/docker.sock
command:
- -name=vault_etcd1_1
- -wait=true
- -sock=/docker.sock
ambassador2:
image: cpuguy83/docker-grand-ambassador
volumes:
- /var/run/docker.sock:/docker.sock
command:
- -name=vault_etcd2_1
- -wait=true
- -sock=/docker.sock
etcd0:
image: quay.io/coreos/etcd:v2.1.1
links:
- ambassador1:etcd1
- ambassador2:etcd2
ports:
- 4001
- 2380
- 2379
command:
- --name=etcd0
- --initial-cluster-token=etcd-cluster-1
- --initial-cluster=etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
- --initial-cluster-state=new
- --initial-advertise-peer-urls=http://etcd0:2380
- --listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001
- --listen-peer-urls=http://0.0.0.0:2380
- --advertise-client-urls=http://etcd0:2379
etcd1:
image: quay.io/coreos/etcd:v2.1.1
links:
- ambassador0:etcd0
- ambassador2:etcd2
ports:
- 4001
- 2380
- 2379
command:
- --name=etcd1
- --initial-cluster-token=etcd-cluster-1
- --initial-cluster=etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
- --initial-cluster-state=new
- --initial-advertise-peer-urls=http://etcd1:2380
- --listen-client-urls=http://0.0.0.0:2379
- --listen-peer-urls=http://0.0.0.0:2380
- --advertise-client-urls=http://etcd1:2379
etcd2:
image: quay.io/coreos/etcd:v2.1.1
links:
- ambassador0:etcd0
- ambassador1:etcd1
ports:
- 4001
- 2380
- 2379
command:
- --name=etcd2
- --initial-cluster-token=etcd-cluster-1
- --initial-cluster=etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380
- --initial-cluster-state=new
- --initial-advertise-peer-urls=http://etcd2:2380
- --listen-client-urls=http://0.0.0.0:2379,http://0.0.0.0:4001
- --listen-peer-urls=http://0.0.0.0:2380
- --advertise-client-urls=http://etcd2:2379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment