502 Bad Gateway Docker ipv4

after trying to solve the IPV6 problem by commenting out the following line:

#listen [::]:80;

Try to solve the 502 and try what you mention in this post