# 跟踪 Docker Compose 日志 param( [ValidateSet("backend", "frontend", "")] [string]$Service = "" ) $ErrorActionPreference = "Stop" $Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path) Set-Location $Root if ($Service) { docker compose logs -f $Service } else { docker compose logs -f }