@echo off
echo ============================================================
echo    RE Workflow Monitoring Stack - Shutdown Script
echo ============================================================
echo.

:: Navigate to monitoring directory
cd /d "%~dp0"

echo [INFO] Stopping monitoring stack...
echo.

docker-compose -f docker-compose.monitoring.yml down

if errorlevel 1 (
    echo.
    echo [ERROR] Failed to stop monitoring stack.
    pause
    exit /b 1
)

echo.
echo ============================================================
echo    Monitoring Stack Stopped Successfully!
echo ============================================================
echo.
echo    Note: Data volumes are preserved. Use the following
echo    command to remove all data:
echo.
echo    docker-compose -f docker-compose.monitoring.yml down -v
echo.
echo ============================================================
echo.

pause

