This commit is contained in:
孙小云 2025-05-22 11:18:08 +08:00
parent f04d24416b
commit 13acda42cb
2 changed files with 1 additions and 6 deletions

View File

@ -1,11 +1,9 @@
#!/bin/bash
# 定基本环境变量并导出
# 不同的环境采用不同的DOMAIN
# HOST_IP 设置为部署服务器的主机IP
export ENV=LOCAL
export DOMAIN=bazhong
export NETWORK="swarm_network_$DOMAIN"
export HOST_IP=127.0.0.1
# 镜像仓库地址
export REGISTRY=registry.t-aaron.com

View File

@ -4,10 +4,7 @@ echo "错误: 未找到 NETWORK 环境变量"
exit 1
fi
if [ -z "$HOST_IP" ]; then
echo "错误: 未找到 HOST_IP 环境变量"
exit 1
fi
if [ -z "$KAFKA_PORT" ]; then
echo "错误: 未找到 KAFKA_PORT 环境变量"