From 1a6fbd9d96092e136157e50864cc21e41aa39e6c Mon Sep 17 00:00:00 2001 From: lub Date: Fri, 8 Nov 2019 20:34:42 +0100 Subject: [PATCH] search for docker-compose.yml instead of *.yaml,*.yml since we place configs (which could be yaml) in the lubidock repository it can cause errors while mistakenly parsing service configs instead of only parsing compose files --- expose_forwards.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expose_forwards.ps1 b/expose_forwards.ps1 index da2cf4d..afadfe6 100644 --- a/expose_forwards.ps1 +++ b/expose_forwards.ps1 @@ -110,7 +110,7 @@ Add-IptablesRule -Chain 'OUTPUT' -Rule $chain_rule $ingress_address = Get-DockerIngressAddress -foreach($yaml in (Get-ChildItem -Path $Stacks -Include '*.yml','*.yaml' -Recurse)) { +foreach($yaml in (Get-ChildItem -Path $Stacks -Include 'docker-compose.yml' -Recurse)) { Write-Output ('Processing {0}' -f $yaml) $definition = Get-Content -Path $yaml -Raw | ConvertFrom-Yaml