chore: update gateway config for local dev and docker
All checks were successful
aiot-platform CI/CD / build-and-deploy (push) Successful in 8m10s
All checks were successful
aiot-platform CI/CD / build-and-deploy (push) Successful in 8m10s
This commit is contained in:
@@ -113,7 +113,7 @@ jobs:
|
||||
docker rm $CONTAINER_NAME || true
|
||||
|
||||
# 覆盖 RPC 地址,使其指向 aiot-server 容器
|
||||
# 同时注入数据库和 Redis 配置
|
||||
# 注入 Redis 配置 (网关需要连 Redis 做消息总线)
|
||||
docker run -d \
|
||||
--name $CONTAINER_NAME \
|
||||
--network $NETWORK_NAME \
|
||||
@@ -121,6 +121,6 @@ jobs:
|
||||
-p 1883:1883 \
|
||||
-p 8092:8092 \
|
||||
-e VIEWSHANGHAI_IOT_GATEWAY_RPC_URL="http://aiot-server:48080" \
|
||||
-e MYSQL_HOST="$MYSQL_HOST" \
|
||||
-e REDIS_HOST="$REDIS_HOST" \
|
||||
$([ -n "$REDIS_PASSWORD" ] && echo "-e REDIS_PASSWORD=$REDIS_PASSWORD" || echo "") \
|
||||
"${IMAGE_NAME}:latest"
|
||||
|
||||
Reference in New Issue
Block a user