mirror of
https://github.com/thib8956/nginx-proxy
synced 2026-10-31 11:42:25 +00:00
Make sure networks order is the same
This commit is contained in:
1 parent
c4ad18fecc
commit
510d376f00
3 files changed
+56
-1
No files matched your search
+1
-1
@@ -105,7 +105,7 @@ upstream {{ .Upstream }} {
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ range $knownNetwork := $networks }}
|
||||
{{ range $containerNetwork := $container.Networks }}
|
||||
{{ range $containerNetwork := sortObjectsByKeysAsc $container.Networks "Name" }}
|
||||
{{ if (and (ne $containerNetwork.Name "ingress") (or (eq $knownNetwork.Name $containerNetwork.Name) (eq $knownNetwork.Name "host"))) }}
|
||||
## Can be connected with "{{ $containerNetwork.Name }}" network
|
||||
{{ if $address }}
|
||||
|
||||
Reference in new issue
Block a user