Files
mtusi2026lab6/scripts/restart.cmd
T

10 lines
528 B
Batchfile

@echo off
rem Windows analogue of restart.sh: restart the whole stand, volumes are kept; wait until healthy.
cd /d "%~dp0.."
docker compose --env-file .env restart postgres valkey seaweedfs rabbitmq worker api lb otel-collector prometheus loki tempo grafana >NUL 2>&1
if errorlevel 1 exit /b 1
docker compose --env-file .env up -d --wait --no-recreate --no-deps postgres valkey seaweedfs rabbitmq worker api lb otel-collector prometheus loki tempo grafana >NUL 2>&1
if errorlevel 1 exit /b 1
ping -n 12 127.0.0.1 >NUL
exit /b 0