deploy: one-command scripts to build+run from deploy/.env

This commit is contained in:
cesnimda
2026-06-30 16:16:16 +02:00
parent a387d31f62
commit dcb939e4f2
9 changed files with 264 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
<#
.SYNOPSIS
Stop the InboxIntel stack. Use -Volumes to also drop the database + key data.
.EXAMPLE
./deploy/down.ps1
./deploy/down.ps1 -Volumes
#>
param([switch]$Volumes)
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$envFile = Join-Path $PSScriptRoot '.env'
$composeArgs = @('compose', '--env-file', $envFile, 'down')
if ($Volumes) { $composeArgs += '--volumes' }
Push-Location $root
try { & docker @composeArgs }
finally { Pop-Location }