diff --git a/install/docker-compose/all_install.sh b/install/docker-compose/all_install.sh index 3cacfae..ad60bb7 100755 --- a/install/docker-compose/all_install.sh +++ b/install/docker-compose/all_install.sh @@ -44,6 +44,8 @@ services: container_name: consul hostname: consul restart: always + ports: + - "8500:8500" volumes: - $tsspath/consul/data:/consul/data - $tsspath/consul/config:/consul/config diff --git a/install/docker-compose/consul_install_only.sh b/install/docker-compose/consul_install_only.sh index b8b7ca9..74042e0 100755 --- a/install/docker-compose/consul_install_only.sh +++ b/install/docker-compose/consul_install_only.sh @@ -38,10 +38,12 @@ cat < /opt/consul/docker-compose.yaml version: '3.6' services: consul: - image: hashicorp/consul:1.16 + image: swr.cn-south-1.myhuaweicloud.com/starsl.cn/consul:latest hostname: consul container_name: consul restart: always + ports: + - "8500:8500" volumes: - /opt/consul/data:/consul/data - /opt/consul/config:/consul/config diff --git a/install/k8s/install.sh b/install/k8s/install.sh index a5f6a57..ea4d739 100755 --- a/install/k8s/install.sh +++ b/install/k8s/install.sh @@ -76,7 +76,7 @@ spec: name: consul-config containers: - name: consul - image: hashicorp/consul:1.16 + image: 'swr.cn-south-1.myhuaweicloud.com/starsl.cn/consul:latest' ports: - name: http containerPort: 8500