docker-letsencrypt-nginx-proxy-companion-examples icon indicating copy to clipboard operation
docker-letsencrypt-nginx-proxy-companion-examples copied to clipboard

If only one port is exposed on container no IP is generated from template

Open dinana opened this issue 8 years ago • 2 comments

I discovered that if a container has only one port exposed no IPs is generated in conf.d/default, consequently I believe that this part is at fault: {{/* If only 1 port exposed, use that */}} {{ if eq $addrLen 1 }} {{ with $address := index $value.Addresses 0 }} # {{$value.Name}} server {{ $address.IP }}:{{ $address.Port }}; {{ end }}

dinana avatar Nov 26 '16 14:11 dinana

same here 👍

swannknani avatar Feb 13 '17 15:02 swannknani

OMG seeing this issue open earlier could have saved me so much time. Is there a reason why exposing more than one port should make a difference?

jrtechs avatar Dec 20 '20 14:12 jrtechs