Gitlab Docker with external nginx gives me 502 Bad Gateway error

So I installed Gitlab with Docker:
sudo docker run --detach
–publish 8929:80 --publish 2289:22
–name gitlab
–restart always
–volume $GITLAB_HOME/config:/etc/gitlab
–volume $GITLAB_HOME/logs:/var/log/gitlab
–volume $GITLAB_HOME/data:/var/opt/gitlab
–shm-size 256m
And I configured Nginx like that:

I also tried:

and my gitlab.rb:

This are my configs and every time I refresh the page it gives me 502 Bad Gateway.