Files
Tools/startup.ps1
T

17 lines
646 B
PowerShell

# startup.ps1 - rebuilds and starts the stack fresh each time
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
# always operate from repo root
Set-Location $PSScriptRoot
Write-Host "Stopping and removing previous containers/images..." -ForegroundColor Cyan
docker compose -f docker-compose.dev.yml down --rmi local --remove-orphans
Write-Host "Building + starting stack..." -ForegroundColor Cyan
docker compose -f docker-compose.dev.yml up --build --force-recreate -d
Write-Host "Services status:" -ForegroundColor Cyan
docker compose -f docker-compose.dev.yml ps
Write-Host "Open http://localhost:5050/" -ForegroundColor Green