Curl: (7) Failed to connect to localhost port 8094: Connection refused

My goal is to connect the files in the repo in GitLab with the sonarqube image available in the Docker container system to the localhost:8094 port and have the necessary analysis done. I defined the server (http://localhost:8094) address found here to the SONAR_HOST_URL variable in the Repository > Settings > CI/CD > Variables section.

The error I get is as follows:

image