{"id":20238948,"url":"https://github.com/quintilesims/consul","last_synced_at":"2026-03-06T17:39:14.480Z","repository":{"id":144437232,"uuid":"83489494","full_name":"quintilesims/consul","owner":"quintilesims","description":"Official Layer0 Consul Service","archived":false,"fork":false,"pushed_at":"2017-12-05T21:21:01.000Z","size":37,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-03T14:48:11.719Z","etag":null,"topics":["consul","layer0"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quintilesims.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-28T23:24:30.000Z","updated_at":"2023-12-19T17:40:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"f010ad3d-e4c9-4104-ac9f-dfd870f8a7ce","html_url":"https://github.com/quintilesims/consul","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/quintilesims/consul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quintilesims%2Fconsul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quintilesims%2Fconsul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quintilesims%2Fconsul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quintilesims%2Fconsul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quintilesims","download_url":"https://codeload.github.com/quintilesims/consul/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quintilesims%2Fconsul/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30188801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T17:33:53.563Z","status":"ssl_error","status_checked_at":"2026-03-06T17:33:51.678Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consul","layer0"],"created_at":"2024-11-14T08:36:16.756Z","updated_at":"2026-03-06T17:39:14.450Z","avatar_url":"https://github.com/quintilesims.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Layer0 Consul\n\nConsul is a service discovery tool created by [HashiCorp](https://www.consul.io/intro/). In this repository, we've provided a pre-configured implementation of Consul's service backend, as well as example configurations for using Consul with your own Layer0 services. \n\n# Overview\n\nWhen you have multiple services in a Layer0 environment, how do you get them to connect to each other? One simple answer is that you hardcode service endpoints (i.e. a Loadbalancer URL) in your application configurations. That may be OK for testing, but ultimately hardcoding endpoints is not portable, annoying to maintain, and not in line with the [guidelines of a 12-factor app](https://12factor.net/). A much better solution is to use a service like Consul, which along with another tool called Registrator, can automatically detect your services when they come online and add them to a service registry. You can then 'discover' these services using catalog endpoints via [DNS](https://www.consul.io/docs/agent/dns.html) or [HTTP](https://www.consul.io/docs/agent/http.html).\n\nFor a practical applications of Consul, see our [Layer0 Consul Documentation](http://docs.xfra.ims.io/guides/consul/).\n\n# Enabling a Service to use Consul\n\nIn order to automatically register services with Consul, you need to add two extra containers to any given service: \n[Registrator](https://github.com/gliderlabs/registrator) and the [Consul Agent](https://www.consul.io/docs/agent/basics.html). \nThe general idea here is that the Registrator container takes care of detecting new Layer0 services and registering them with the Consul backend, \nwhile the Consul Agent is a localhost interface for performing Consul-based HTTP and DNS queries. \n\n# Examples\nWe have 2 walkthroughs in this repo that create a Consul server and a simple web application that registers itself with the Consul server:\n* The walkthrough using the Layer0 cli can be found [here](https://github.com/quintilesims/consul/tree/master/example/cli)\n* The walkthrough using Terraform can be found [here](https://github.com/quintilesims/consul/tree/master/example/terraform)\n\n# Troubleshooting\n\nPlease send an email to \u003ccarbon@us.imshealth.com\u003e with any issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquintilesims%2Fconsul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquintilesims%2Fconsul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquintilesims%2Fconsul/lists"}