chore(config): Improve Nacos initialization and deployment scripts

This commit is contained in:
2025-04-14 15:31:02 +08:00
parent 111da1aba6
commit d2c4394516
11 changed files with 324 additions and 46 deletions
+15 -5
View File
@@ -9,12 +9,22 @@ cd sentinel-dashboard
docker build -t sentinel-dashboard:1.8.6 .
cd ..
echo 3. 启动Docker Compose...
echo 3. 获取本机IP地址...
for /f "tokens=2 delims=:" %%a in ('ipconfig ^| findstr /r "IPv4.*[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*"') do (
set HOST_IP=%%a
goto :found_ip
)
:found_ip
set HOST_IP=%HOST_IP:~1%
echo 使用IP地址: %HOST_IP%
echo 4. 启动Docker Compose...
set HOST_IP=%HOST_IP%
docker-compose up -d
echo 部署完成!
echo 服务访问地址:
echo - 网关: http://localhost:9000
echo - Nacos: http://localhost:8848/nacos
echo - Sentinel: http://localhost:8080
echo - MinIO: http://localhost:9001
echo - 网关: http://%HOST_IP%:9000
echo - Nacos: http://%HOST_IP%:8848/nacos
echo - Sentinel: http://%HOST_IP%:8880
echo - MinIO: http://%HOST_IP%:9001