Files
mtusi2026lab3/scripts/up.ps1
T

7 lines
283 B
PowerShell

$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 }