Skip to content

Instantly share code, notes, and snippets.

@nicolaka
Last active November 9, 2015 06:01
Show Gist options
  • Save nicolaka/3a308c3866d550b2f59c to your computer and use it in GitHub Desktop.
Save nicolaka/3a308c3866d550b2f59c to your computer and use it in GitHub Desktop.
consul-bootstrapper:
image: progrium/consul
ports:
- "8300-8302:8300-8302"
- "8300-8302:8300-8302/udp"
- "8400:8400"
- "8500:8500"
command: -server -advertise $ADVERTISE_IP -bootstrap-expect 2
restart: always
name: consul-server-1
hostname: consul-server-1
consul-server:
image: progrium/consul
ports:
- "8300-8302:8300-8302"
- "8300-8302:8300-8302/udp"
- "8400:8400"
- "8500:8500"
command: -server -advertise $ADVERTISE_IP -join $JOIN_IP
restart: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment