How to connect a gitlab-runner with a gitlab service via docker-compose?

Hey,

I’m not sure which instructions you followed, but I believe you put the wrong URL when registering - instead of http://gitlab, you should put the whole instance URL, otherwise git inside the runner cannot properly resolve it. Have a look at official docs.

Hope this helps!

P.S. If you ever need a “dind” setup as well, you may want to have a look at this config.