|
|
@ -93,11 +93,9 @@ consul acl bootstrap |
|
|
|
### 2. 部署Consul Manager |
|
|
|
### 2. 部署Consul Manager |
|
|
|
|
|
|
|
|
|
|
|
##### 使用docker-compose来部署 |
|
|
|
##### 使用docker-compose来部署 |
|
|
|
wget https://raw.githubusercontent.com/starsliao/ConsulManager/main/docker-compose.yml |
|
|
|
- 下载:`wget https://raw.githubusercontent.com/starsliao/ConsulManager/main/docker-compose.yml` |
|
|
|
|
|
|
|
- 编辑`docker-compose.yaml`文件,修改3个环境变量: |
|
|
|
编辑docker-compose.yaml文件,修改传入的3个环境变量: |
|
|
|
- **consul的`token`,consul的`URL`(/v1要保留),登录Consul Manager的`密码`** |
|
|
|
- **consul的`token`,consul的`URL`(/v1要保留),登录Consul Manager的`密码`** |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 启动:`docker-compose pull && docker-compose up -d` |
|
|
|
- 启动:`docker-compose pull && docker-compose up -d` |
|
|
|
- 访问:`http://{IP}:1026` |
|
|
|
- 访问:`http://{IP}:1026` |
|
|
|
--- |
|
|
|
--- |
|
|
|