$ErrorActionPreference = "Stop" $Root = Split-Path -Parent $PSScriptRoot Set-Location $Root if (-not $env:API_REPLICAS) { $env:API_REPLICAS = "2" } docker compose --env-file .env up -d --build --wait --scale "api=$($env:API_REPLICAS)" if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }