refactor: doc

This commit is contained in:
xiaojunnuo
2023-07-04 14:19:55 +08:00
parent 657fad06fb
commit 109e01bb60
3 changed files with 12 additions and 5 deletions

View File

@@ -3,13 +3,11 @@ set -e
# 判断$CERTD_VERSION 是否存在
if [ -n "$CERTD_VERSION" ]; then
echo "CERTD_VERSION is set = $CERTD_VERSION"
version=$CERTD_VERSION
else
echo "CERTD_VERSION is not set"
echo "请先输入一个版本号(如 1.0.6)"
read version
read CERTD_VERSION
fi
echo "您输入的版本号是: $version"
export TAG="$version"
echo "您输入的版本号是: $CERTD_VERSION"
sudo -E docker compose up -d

View File

@@ -2,7 +2,7 @@ version: '3.3'
services:
certd:
# 镜像 # ↓↓↓↓↓ --- 1、 修改镜像版本号
image: registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${TAG}
image: registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${CERTD_VERSION}
container_name: certd # 容器名
restart: unless-stopped # 重启
volumes: