This commit is contained in:
孙小云 2025-06-05 15:40:06 +08:00
parent 4ce0316158
commit fd27972a91
2 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@ source ../environment.sh
NGINX_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${NGINX_NAME})
if [ -z "$NGINX_IP" ]; then
echo "错误:无法获取 ${NGINX_NAME} 容器的 IP 地址"
exit 1
fi
echo "获取到 ${NGINX_NAME} 容器的 IP 地址: ${NGINX_IP}"
@ -45,7 +44,7 @@ docker run --pull always -d \
--env TUOHENG_DSP_CALLBACK_URL=https://${HHZ_DOMAIN_FULL}/hhz/admin/dsp/{requestId}/callback \
--env TUOHENG_OIDC-URL=https://${OIDC_ADMIN_DOMAIN_FULL} \
--env TZ=Asia/Shanghai \
--add-host ${OIDC_ADMIN_DOMAIN}:${NGINX_IP} \
--add-host ${OIDC_ADMIN_DOMAIN}:host-gateway \
--mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \
--memory ${HHZ_ADMIN_MEMORY} \
--restart unless-stopped \

View File

@ -4,7 +4,6 @@ source ../environment.sh
NGINX_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' ${NGINX_NAME})
if [ -z "$NGINX_IP" ]; then
echo "错误:无法获取 ${NGINX_NAME} 容器的 IP 地址"
exit 1
fi
echo "获取到 ${NGINX_NAME} 容器的 IP 地址: ${NGINX_IP}"