{"id":20906036,"url":"https://github.com/telanflow/consul-cluster","last_synced_at":"2025-08-26T23:36:07.939Z","repository":{"id":133912042,"uuid":"409845439","full_name":"telanflow/consul-cluster","owner":"telanflow","description":"consul-cluster for docker ","archived":false,"fork":false,"pushed_at":"2021-09-24T05:45:16.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T08:42:04.738Z","etag":null,"topics":["consul","consul-cluster","docker","docker-compose"],"latest_commit_sha":null,"homepage":"","language":null,"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/telanflow.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":"2021-09-24T05:41:14.000Z","updated_at":"2021-09-24T05:43:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"95a7f4b6-1933-4746-851f-ce6190ebe941","html_url":"https://github.com/telanflow/consul-cluster","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/telanflow/consul-cluster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telanflow%2Fconsul-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telanflow%2Fconsul-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telanflow%2Fconsul-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telanflow%2Fconsul-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telanflow","download_url":"https://codeload.github.com/telanflow/consul-cluster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telanflow%2Fconsul-cluster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272267430,"owners_count":24903683,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","consul-cluster","docker","docker-compose"],"created_at":"2024-11-18T13:28:44.869Z","updated_at":"2025-08-26T23:36:07.904Z","avatar_url":"https://github.com/telanflow.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Consul-Cluster\n\ndocker-compose consul集群\n\n### 组件（容器）及相关软件版本\n\n* Consul：latest\n\n### 目录结构\n\n    cluster\n    |----/config                 配置文件目录\n    |----/data                   持久化数据目录\n    |----/.env-example           配置文件\n    |----/docker-compose.yml     docker compose 配置文件\n\n## 开始安装\n\n没有安装 Docker 的同学移步 [安装教程](https://github.com/telanflow/consul-cluster.git#安装-docker-及相关工具)，如果你有足够的时间强烈建议通读 [Docker — 从入门到实践](https://yeasy.gitbooks.io/docker_practice/content/)\n\n    cd ~/\n    git clone https://github.com/telanflow/consul-cluster.git\n\n    cd dnmp\n    cp .env-example .env\n\n    # 修改配置\n    vim .env\n\n    # 构建全部镜像并启动容器\n    sudo docker-compose up --build -d\n\n    # 构建单个镜像并启动容器\n    sudo docker-compose build --no-cache [srv1 |srv2|srv3|ui ...]\n\n启动成功访问 http://localhost:8500/ui 即可\n\n## 安装 Docker 及相关工具\n\n### 安装 docker（2选1）\n    \n1、参考 daocloud 提供的文档（推荐）\n\n    # 注意按照文档如果执行类似 install docker-ce=17.03.1* 出错，执行 install docker-ce 即可\n    https://download.daocloud.io/Docker_Mirror/Docker\n\n2、ubuntu 系统（可能不是最新版本的，适合学习或者测试用）\n\n    apt-get update \u0026\u0026 apt install docker.io    \n    \n### 安装 docker-compose\n    \n    sudo curl -L \"https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose\n    \n    sudo chmod +x /usr/local/bin/docker-compose\n\n### 启动 Docker\n\n    sudo service docker start\n    sudo docker info\n\n### 配置 DockerHub 加速器（你用的阿里云也许不用配置，如果觉得下载镜像很慢就配置）\n\n阿里云加速器：每个人有对应的加速地址，访问 https://cr.console.aliyun.com -\u003e【镜像加速器】配置加速器\n\nDaoCloud 加速器：http://guide.daocloud.io/dcs/daocloud-9153151.html\n\n腾讯云加速器：https://www.qcloud.com/document/product/457/7207\n\n### 鸣谢\n[Docker LNMP 3.2](https://github.com/exc-soft/docker-lnmp)\n\n### License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelanflow%2Fconsul-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelanflow%2Fconsul-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelanflow%2Fconsul-cluster/lists"}