No_proxy setting not being honored

i am using docker-compose and for a container have the environment variable of

when the container is running and I curl the request goes thru without issue. The problem I am having is that when I am attempting to do a CONNECT request to, this connect request is going to the proxy.

Any ideas why?