优化安装脚本

pull/81/head
starsliao 2023-07-31 15:40:02 +08:00
parent 9265af65d8
commit 32b7123119
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -38,10 +38,12 @@ cat <<EOF > /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

View File

@ -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