Sign inSign up

panga/consul-registration

By panga

•Updated over 9 years ago

This project is for registering a service with a consul cluster.

Image
0

226

panga/consul-registration repository overview

⁠consul-registration

This project is for registering a service with a consul cluster.

⁠Usage

This is mainly meant for use as a docker container sidekick to a primary service. See the consul agent registration⁠ documentation for the API

docker run -d --name webapp organization/webapp 
docker run --link webapp:webapp panga/consul-registration \
	-consul http://consul.example.com \
	-container webapp \
	-id webapp1 \
	-name webapp \
	-tag web \
	-tag webapp

For help output: just run with -h

$ docker run panga/consul-registration -h
Usage of /bin/consul-registration:
  -consul="http://consul.service.consul": The address or IP for consul
  -container="": The container name to watch
  -http="": See https://www.consul.io/docs/agent/checks.html
  -id="": The service ID for consul
  -interval="45s": Interval for consul's HTTP check
  -name="": The service name for consul
  -port=80: The service port for consul
  -note="": A note to pass along with service checks
  -once=false: Only register the service, then exit
  -script="": Script on consul server to execute
  -sleep=30: How long to wait between checking in with consul.
  -tag=[]: A tag to be applied to the service. Repeat option for multiple tags
  -ttl="45s": TTL for the service. Make this larget than -sleep

Tag summary

Content type

Image

Digest

Size

3.6 MB

Last updated

over 9 years ago

docker pull panga/consul-registration