Skip to content

Instantly share code, notes, and snippets.

@dan-turner
Last active January 20, 2016 01:05
Show Gist options
  • Save dan-turner/ce18e3a840c5027388b8 to your computer and use it in GitHub Desktop.
Save dan-turner/ce18e3a840c5027388b8 to your computer and use it in GitHub Desktop.
Consul
"Env": [
"TUTUM_REST_HOST=https://dashboard.tutum.co",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_SERVICE_API_URI=/api/v1/service/be77e630-5abb-43fa-92f4-58ff5c5f35fe/",
"TUTUM_STACK_NAME=Consul",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_SERVICE_API_URL=https://dashboard.tutum.co/api/v1/service/be77e630-5abb-43fa-92f4-58ff5c5f35fe/",
"CONSUL_BOOTSTRAP_PORT_8301_UDP=udp://10.7.0.1:8301",
"CONSUL_BOOTSTRAP_PORT_8400_TCP_ADDR=10.7.0.1",
"TUTUM_SERVICE_API_URI=/api/v1/service/521e967c-a7c5-4be6-9803-1b919a5d0a89/",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_NODE_HOSTNAME=17635254-danturner",
"CONSUL_BOOTSTRAP_PORT_8600_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_CONTAINER_FQDN=consul-bootstrap-1.consul.danturner.cont.tutum.io",
"CONSUL_BOOTSTRAP_PORT_8600_UDP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_ENV_CONSUL_VERSION=0.6.0",
"CONSUL_BOOTSTRAP_ENV_TUTUM_IP_ADDRESS=10.7.0.1/16",
"CONSUL_BOOTSTRAP_PORT_8400_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_PORT_8301_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_ENV_TUTUM_NODE_API_URI=/api/v1/node/17635254-4ebe-49e8-bc15-c62b8ef80b14/",
"CONSUL_BOOTSTRAP_PORT_8302_UDP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_1_PORT_8300_TCP_PORT=8300",
"CONSUL_BOOTSTRAP_PORT_8600_TCP_PORT=8600",
"CONSUL_BOOTSTRAP_PORT_8600_UDP_PORT=8600",
"CONSUL_BOOTSTRAP_1_PORT_8302_UDP=udp://10.7.0.1:8302",
"CONSUL_BOOTSTRAP_PORT_8600_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_1_PORT_8400_TCP_ADDR=10.7.0.1",
"TUTUM_NODE_API_URI=/api/v1/node/17635254-4ebe-49e8-bc15-c62b8ef80b14/",
"CONSUL_BOOTSTRAP_1_PORT_8600_UDP_PROTO=udp",
"CONSUL_BOOTSTRAP_ENV_TUTUM_NODE_API_URL=https://dashboard.tutum.co/api/v1/node/17635254-4ebe-49e8-bc15-c62b8ef80b14/",
"TUTUM_NODE_API_URL=https://dashboard.tutum.co/api/v1/node/17635254-4ebe-49e8-bc15-c62b8ef80b14/",
"CONSUL_BOOTSTRAP_1_PORT_8600_TCP_PORT=8600",
"CONSUL_BOOTSTRAP_1_PORT_8301_UDP=udp://10.7.0.1:8301",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_NODE_API_URL=https://dashboard.tutum.co/api/v1/node/17635254-4ebe-49e8-bc15-c62b8ef80b14/",
"CONSUL_BOOTSTRAP_1_PORT_8302_UDP_PROTO=udp",
"CONSUL_BOOTSTRAP_PORT_8301_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_1_PORT_8301_TCP_PORT=8301",
"CONSUL_BOOTSTRAP_PORT_8302_TCP_PORT=8302",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_NODE_API_URI=/api/v1/node/17635254-4ebe-49e8-bc15-c62b8ef80b14/",
"CONSUL_BOOTSTRAP_ENV_TUTUM_SERVICE_FQDN=consul-bootstrap.consul.danturner.svc.tutum.io",
"CONSUL_BOOTSTRAP_PORT_8500_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_TUTUM_API_URL=https://dashboard.tutum.co/api/v1/service/be77e630-5abb-43fa-92f4-58ff5c5f35fe/",
"CONSUL_BOOTSTRAP_1_PORT_8301_UDP_PROTO=udp",
"CONSUL_BOOTSTRAP_PORT_8400_TCP_PORT=8400",
"CONSUL_BOOTSTRAP_1_PORT_8500_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_1_PORT_8600_TCP=tcp://10.7.0.1:8600",
"CONSUL_BOOTSTRAP_1_PORT_8400_TCP=tcp://10.7.0.1:8400",
"TUTUM_CONTAINER_HOSTNAME=consul-server-2",
"CONSUL_BOOTSTRAP_1_PORT_8302_TCP_PORT=8302",
"CONSUL_BOOTSTRAP_1_PORT_8302_TCP=tcp://10.7.0.1:8302",
"CONSUL_BOOTSTRAP_ENV_TUTUM_CONTAINER_FQDN=consul-bootstrap-1.consul.danturner.cont.tutum.io",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_STACK_NAME=Consul",
"TUTUM_STREAM_HOST=wss://stream.tutum.co",
"CONSUL_BOOTSTRAP_PORT_8302_UDP_PORT=8302",
"CONSUL_BOOTSTRAP_NAME=/5db29953-6984-4f17-ad3d-d18600b6857d/consul-bootstrap-1",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_IP_ADDRESS=10.7.0.1/16",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_SERVICE_FQDN=consul-bootstrap.consul.danturner.svc.tutum.io",
"TUTUM_SERVICE_API_URL=https://dashboard.tutum.co/api/v1/service/521e967c-a7c5-4be6-9803-1b919a5d0a89/",
"CONSUL_BOOTSTRAP_1_PORT_8500_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_ENV_TUTUM_CONTAINER_API_URI=/api/v1/container/7f20a7da-5062-4b49-b1e9-e9c34451e42a/",
"CONSUL_BOOTSTRAP_ENV_TUTUM_CONTAINER_API_URL=https://dashboard.tutum.co/api/v1/container/7f20a7da-5062-4b49-b1e9-e9c34451e42a/",
"CONSUL_BOOTSTRAP_1_NAME=/5db29953-6984-4f17-ad3d-d18600b6857d/consul-bootstrap-1",
"CONSUL_BOOTSTRAP_1_PORT_8400_TCP_PORT=8400",
"CONSUL_BOOTSTRAP_ENV_TUTUM_SERVICE_HOSTNAME=consul-bootstrap",
"CONSUL_BOOTSTRAP_ENV_TUTUM_REST_HOST=https://dashboard.tutum.co",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_SERVICE_HOSTNAME=consul-bootstrap",
"TUTUM_SERVICE_HOSTNAME=consul-server",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_CONTAINER_HOSTNAME=consul-bootstrap-1",
"CONSUL_BOOTSTRAP_PORT_8500_TCP_PORT=8500",
"CONSUL_BOOTSTRAP_1_PORT_8600_UDP=udp://10.7.0.1:8600",
"CONSUL_BOOTSTRAP_1_PORT_8302_UDP_PORT=8302",
"CONSUL_BOOTSTRAP_1_PORT_8301_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_1_ENV_CONSUL_VERSION=0.6.0",
"CONSUL_BOOTSTRAP_PORT_8500_TCP=tcp://10.7.0.1:8500",
"CONSUL_BOOTSTRAP_1_PORT_8302_UDP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_PORT_8500_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_PORT_8600_UDP=udp://10.7.0.1:8600",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_CONTAINER_API_URI=/api/v1/container/7f20a7da-5062-4b49-b1e9-e9c34451e42a/",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_CONTAINER_API_URL=https://dashboard.tutum.co/api/v1/container/7f20a7da-5062-4b49-b1e9-e9c34451e42a/",
"CONSUL_BOOTSTRAP_PORT_8302_TCP=tcp://10.7.0.1:8302",
"CONSUL_BOOTSTRAP_ENV_TUTUM_NODE_FQDN=17635254-danturner.node.tutum.io",
"CONSUL_BOOTSTRAP_PORT_8301_TCP=tcp://10.7.0.1:8301",
"CONSUL_BOOTSTRAP_1_PORT_8301_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_STREAM_HOST=wss://stream.tutum.co",
"CONSUL_BOOTSTRAP_1_PORT_8302_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_1_PORT_8301_TCP=tcp://10.7.0.1:8301",
"CONSUL_BOOTSTRAP_PORT_8600_TCP=tcp://10.7.0.1:8600",
"CONSUL_BOOTSTRAP_1_PORT_8600_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_PORT_8600_UDP_PROTO=udp",
"TUTUM_IP_ADDRESS=10.7.0.3/16",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_NODE_FQDN=17635254-danturner.node.tutum.io",
"CONSUL_BOOTSTRAP_1_PORT_8301_UDP_PORT=8301",
"CONSUL_BOOTSTRAP_ENV_TUTUM_CONTAINER_HOSTNAME=consul-bootstrap-1",
"CONSUL_BOOTSTRAP_ENV_TUTUM_STACK_NAME=Consul",
"CONSUL_BOOTSTRAP_PORT_8300_TCP_PROTO=tcp",
"TUTUM_CONTAINER_API_URI=/api/v1/container/5db29953-6984-4f17-ad3d-d18600b6857d/",
"CONSUL_BOOTSTRAP_1_PORT_8300_TCP_ADDR=10.7.0.1",
"TUTUM_CONTAINER_API_URL=https://dashboard.tutum.co/api/v1/container/5db29953-6984-4f17-ad3d-d18600b6857d/",
"CONSUL_BOOTSTRAP_PORT_8302_UDP_PROTO=udp",
"CONSUL_BOOTSTRAP_1_PORT_8500_TCP_PORT=8500",
"CONSUL_BOOTSTRAP_1_PORT_8400_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_1_PORT_8300_TCP=tcp://10.7.0.1:8300",
"CONSUL_BOOTSTRAP_1_PORT_8600_UDP_ADDR=10.7.0.1",
"TUTUM_NODE_FQDN=17635254-danturner.node.tutum.io",
"CONSUL_BOOTSTRAP_ENV_TUTUM_NODE_HOSTNAME=17635254-danturner",
"CONSUL_BOOTSTRAP_PORT_8300_TCP=tcp://10.7.0.1:8300",
"CONSUL_BOOTSTRAP_PORT_8300_TCP_PORT=8300",
"CONSUL_BOOTSTRAP_PORT_8300_TCP_ADDR=10.7.0.1",
"TUTUM_NODE_HOSTNAME=17635254-danturner",
"TUTUM_SERVICE_FQDN=consul-server.consul.danturner.svc.tutum.io",
"CONSUL_BOOTSTRAP_PORT_8302_TCP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_PORT_8400_TCP=tcp://10.7.0.1:8400",
"CONSUL_BOOTSTRAP_1_PORT_8302_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_PORT_8302_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_ENV_TUTUM_STREAM_HOST=wss://stream.tutum.co",
"CONSUL_BOOTSTRAP_1_PORT_8600_UDP_PORT=8600",
"CONSUL_BOOTSTRAP_1_PORT_8300_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_1_PORT_8500_TCP=tcp://10.7.0.1:8500",
"TUTUM_CONTAINER_FQDN=consul-server-2.consul.danturner.cont.tutum.io",
"CONSUL_BOOTSTRAP_1_ENV_TUTUM_REST_HOST=https://dashboard.tutum.co",
"CONSUL_BOOTSTRAP_ENV_TUTUM_SERVICE_API_URL=https://dashboard.tutum.co/api/v1/service/be77e630-5abb-43fa-92f4-58ff5c5f35fe/",
"CONSUL_BOOTSTRAP_PORT_8301_UDP_PROTO=udp",
"CONSUL_BOOTSTRAP_PORT_8301_TCP_PORT=8301",
"CONSUL_BOOTSTRAP_ENV_TUTUM_SERVICE_API_URI=/api/v1/service/be77e630-5abb-43fa-92f4-58ff5c5f35fe/",
"CONSUL_BOOTSTRAP_PORT_8301_UDP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_1_PORT_8301_UDP_ADDR=10.7.0.1",
"CONSUL_BOOTSTRAP_PORT_8301_UDP_PORT=8301",
"CONSUL_BOOTSTRAP_1_PORT_8600_TCP_PROTO=tcp",
"CONSUL_BOOTSTRAP_PORT_8302_UDP=udp://10.7.0.1:8302",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"CONSUL_VERSION=0.6.0"
],
consul_bootstrap:
image: voxxit/consul
volumes:
- /data
command:
"agent -server -bootstrap-expect=3 -data-dir=/data"
expose:
- "8300"
- "8301"
- "8301/udp"
- "8302"
- "8302/udp"
- "8400"
- "8500"
- "8600"
- "8600/udp"
consul_server:
image: voxxit/consul
volumes:
- /data
links:
- consul_bootstrap
command:
"agent -server -bootstrap-expect=3 -data-dir=/data -join consul_bootstrap"
expose:
- "8300"
- "8301"
- "8301/udp"
- "8302"
- "8302/udp"
- "8400"
- "8500"
- "8600"
- "8600/udp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment