优化安装脚本
parent
9265af65d8
commit
32b7123119
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue