consul-doppelganger

1.0.5 • Public • Published

Doppelgänger

Write .yml files to define Consul services.

- name: facebook
  tags: ['master']
  port: 80
 
- name: twitter
  tags: ['master']
  port: 8080

Run the doppelganger daemon to register the services with Consul. Send a SIGHUP to refresh. Doppelganger will communicate with a local Consul agent or using the environment variable CONSUL_HOST.

The 'doppelganger' tag is used to highlight these new services.

Installation

npm install -g redwire-doppelganger

This will provide the doppelganger command line daemon.

To reload any changes send a SIGHUP to the doppelganger daemon

Docker Container

A docker container has been provided that bundles Consul 1.4, Doppelganger and Redwire to provide a facade. Check out doppelganger.yml and the examples folder for configuration. Works well with tugboat.

The image will be available on the docker hub as metocean/doppelganger soon.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i consul-doppelganger

    Weekly Downloads

    1

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • ajnisbet
    • ascendzor
    • tcoats
    • tornadot-tim