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
Tail logs for the stack (or a single service, e.g. api / frontend / postgres).
.EXAMPLE
./deploy/logs.ps1 # all services
./deploy/logs.ps1 api # just the API container
#>
param([string]$Service)
$ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$envFile = Join-Path $PSScriptRoot '.env'
$composeArgs = @('compose', '--env-file', $envFile, 'logs', '-f', '--tail', '200')
if ($Service) { $composeArgs += $Service }
Push-Location $root
try { & docker @composeArgs }
finally { Pop-Location }