Gzip Compression enable issue

Have running docker stack with Nginx Wordpress PHP services.

tried to enable gzip but it is still not taking effect.

#gzip on;
#gzip_min_length 10k;
#gzip_types text/plain application/javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;
#gzip_vary on;

gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
#gzip_disable "msie6";
gzip_vary on;
gzip_static on;
gzip_proxied expired no-cache no-store private auth;
#gzip_proxied any;
gzip_comp_level 6;
gizip_min_length 10240;
gzip_buffers 16 8k;
#gzip_http_version 1.1;
gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml svg svgz image/x-icon text/css text/javascript text/plain text/xml;