# 后台启动 Docker Compose 栈（不重启 Docker Desktop）
$ErrorActionPreference = "Stop"
$Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path)
Set-Location $Root

Write-Host "Starting services..." -ForegroundColor Cyan
docker compose up -d

if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }

Write-Host ""
Write-Host "Services running:" -ForegroundColor Green
Write-Host "  Backend:  http://localhost:23337"
Write-Host "  Frontend: http://localhost:23338"
Write-Host ""
Write-Host "Logs: .\scripts\docker-logs.ps1"
