forked from mtusi2026/mtusi2026lab3
7 lines
283 B
PowerShell
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 }
|