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 www.example.com the request goes thru without issue. The problem I am having is that when I am attempting to do a CONNECT request to www.example.com, this connect request is going to the proxy.

Any ideas why?