1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 01:38:15 +00:00

chore: Remove warning comment when port is not exposed

Exposing ports is largely deprecated because it doesn't actually do
anything in Docker.
This commit is contained in:
Richard Hansen 2023-01-26 16:39:13 -05:00
parent e97bf606c8
commit 2760ead490

View File

@ -116,9 +116,6 @@ upstream {{ .Upstream }} {
# Exposed ports: {{ $container.Addresses }}
# Default virtual port: {{ $defaultPort }}
# VIRTUAL_PORT: {{ $container.Env.VIRTUAL_PORT }}
{{- if not $address }}
# /!\ Virtual port not exposed
{{- end }}
{{- range $knownNetwork := $networks }}
{{- range $containerNetwork := sortObjectsByKeysAsc $container.Networks "Name" }}
{{- if (and (ne $containerNetwork.Name "ingress") (or (eq $knownNetwork.Name $containerNetwork.Name) (eq $knownNetwork.Name "host"))) }}