Seems like you are using localhost
as your GitLab instance domain, which would not work as the sentry web instance runs in its own isolated container in an isolated network.
This answer may help you identify your host machine IP visible from the Docker container: https://stackoverflow.com/questions/22944631/how-to-get-the-ip-address-of-the-docker-host-from-inside-a-docker-container