This commit is contained in:
Jonas Bengtsson
2026-08-30 11:30:09 +02:00
parent 47714fa7e3
commit c139b30f6f
28 changed files with 2100 additions and 34 deletions
+31
View File
@@ -0,0 +1,31 @@
<#
.SYNOPSIS
Stops the mqtt-ingester stack.
.DESCRIPTION
Stops and removes containers and the default network. Volumes
(timescale-data, mqtt-logs, loki-data) are preserved; use prune.ps1
to remove them.
.PARAMETER Profiles
Comma-separated compose profiles (must match the ones used at start
so the same services are addressed).
#>
[CmdletBinding()]
param(
[string]$Profiles = ""
)
$ErrorActionPreference = "Stop"
$StackRoot = Split-Path -Parent $PSScriptRoot
Set-Location $StackRoot
$composeArgs = @("compose", "down", "--remove-orphans")
if ($Profiles) {
$composeArgs += @("--profile", $Profiles)
}
Write-Host "Stopping stack..." -ForegroundColor Cyan
docker @composeArgs
exit $LASTEXITCODE