Write-Host "Pulling latest Repo from Gittea..." -ForegroundColor Blue git pull if ($LASTEXITCODE -ne 0) { Write-Host "git pull failed." -ForegroundColor Red exit $LASTEXITCODE } Write-Host "Stopping Docker Compose stack..." -ForegroundColor Yellow docker compose down if ($LASTEXITCODE -ne 0) { Write-Host "docker compose down failed." -ForegroundColor Red exit $LASTEXITCODE } Write-Host "Building Docker Compose stack without cache..." -ForegroundColor Yellow docker compose build --no-cache if ($LASTEXITCODE -ne 0) { Write-Host "docker compose build failed." -ForegroundColor Red exit $LASTEXITCODE } Write-Host "Starting Docker Compose stack..." -ForegroundColor Yellow docker compose up -d --force-recreate if ($LASTEXITCODE -ne 0) { Write-Host "docker compose up failed." -ForegroundColor Red exit $LASTEXITCODE } Write-Host "Docker Compose stack successfully rebuilt and started." -ForegroundColor Green