You can disable Gravatar in GitLab using the following two methods.
Open the configuration file and add
nano /var/opt/gitlab/gitlab-shell/config.yml
Add
gravatar.enabled: false
Edit your hosts file
nano /etc/hosts
Add line
127.0.0.1 gravatar.com
Save changes, reboot