34 lines
1.5 KiB
PowerShell
34 lines
1.5 KiB
PowerShell
# WACE 솔루션 - 전체 서비스 중지 - PowerShell 버전
|
|
# 실행 방법: powershell -ExecutionPolicy Bypass -File .\scripts\dev\stop-all.ps1
|
|
|
|
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
|
|
|
# 스크립트 위치에서 루트 디렉토리로 이동
|
|
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
|
Set-Location (Join-Path $scriptPath "..\..")
|
|
|
|
Write-Host "============================================" -ForegroundColor Cyan
|
|
Write-Host "WACE 솔루션 - 전체 서비스 중지" -ForegroundColor Cyan
|
|
Write-Host "============================================" -ForegroundColor Cyan
|
|
Write-Host ""
|
|
|
|
Write-Host "🛑 백엔드 서비스 중지 중..." -ForegroundColor Yellow
|
|
docker-compose -f docker-compose.backend.win.yml down -v 2>$null
|
|
Write-Host "✅ 백엔드 서비스 중지 완료" -ForegroundColor Green
|
|
Write-Host ""
|
|
|
|
Write-Host "🛑 프론트엔드 서비스 중지 중..." -ForegroundColor Yellow
|
|
docker-compose -f docker-compose.frontend.win.yml down -v 2>$null
|
|
Write-Host "✅ 프론트엔드 서비스 중지 완료" -ForegroundColor Green
|
|
Write-Host ""
|
|
|
|
Write-Host "🧹 네트워크 정리 중..." -ForegroundColor Yellow
|
|
docker network rm pms-network 2>$null
|
|
Write-Host ""
|
|
|
|
Write-Host "============================================" -ForegroundColor Cyan
|
|
Write-Host "🎉 모든 서비스가 중지되었습니다!" -ForegroundColor Green
|
|
Write-Host "============================================" -ForegroundColor Cyan
|
|
|
|
Read-Host "계속하려면 Enter를 누르세요"
|