{"id":22166633,"url":"https://github.com/alextanhongpin/consul-docker-compose","last_synced_at":"2026-05-18T19:37:13.313Z","repository":{"id":79114770,"uuid":"96662473","full_name":"alextanhongpin/consul-docker-compose","owner":"alextanhongpin","description":"Running a three node cluster for consul using docker compose and service registration with nodejs","archived":false,"fork":false,"pushed_at":"2017-07-09T05:19:12.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T21:54:23.049Z","etag":null,"topics":["consul","docker-compose"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/alextanhongpin.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-07-09T05:08:04.000Z","updated_at":"2019-04-18T16:43:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"61c3724b-fd0b-4ae7-b63f-61cbb40cce77","html_url":"https://github.com/alextanhongpin/consul-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fconsul-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fconsul-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fconsul-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alextanhongpin%2Fconsul-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alextanhongpin","download_url":"https://codeload.github.com/alextanhongpin/consul-docker-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245308259,"owners_count":20594222,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","docker-compose"],"created_at":"2024-12-02T05:20:14.189Z","updated_at":"2026-05-18T19:37:08.290Z","avatar_url":"https://github.com/alextanhongpin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-consul\n\n\nUsing Consul for service discovery.\n\n\n## Docker\n\nGet the latest version of Consul with the following command:\n\n```bash\n$ docker pull consul\n```\n\nRunning a three node cluster for development by starting up two more instances and telling them to join the first node.\n\n```bash\n# Setup the consul\n$ docker-compose up -d\n\n# Register the service on the server side\n$ cd ./server \u0026\u0026 node server.js\n\n# Listen to the changes of the registered service\n$ cd ./client \u0026\u0026 node client.js\n```\n\n\n### UI\nFor displaying the ui, the following is needed\n```bash\n$ ... -ui -client=0.0.0.0 -bind='{{ GetPrivateIP }}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fconsul-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falextanhongpin%2Fconsul-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falextanhongpin%2Fconsul-docker-compose/lists"}