docker-letsencrypt-nginx-proxy-companion-examples
docker-letsencrypt-nginx-proxy-companion-examples copied to clipboard
If only one port is exposed on container no IP is generated from template
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 }}
same here 👍
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?