Problems using docker-compose with gitlab-ci

Hi there,

I’m just trying to wrap my head around Gitlab-CI and have some problems getting started.

I’ve got a dockerized sample rails 5 app with a linked Postgres container (docker-compose).
Locally this is working fine, however, now I’m trying to get this to gitlab-ci (non self hosted) and
I’m not sure how to do this for docker-compose:

I just pushed it and the db reference is obviously not recognized.

Can anyone tell me how to get started with this? I’m rather confused by the docs and a lot of information on the topic is outdated…

Thank you very much

Can anyone tell me how to get started with this?

I’m not sure if I have to use a custom runner using the hosted version, or if I just have to create a gitlab-ci file that
does all the docker stuff, as in: http://stackoverflow.com/questions/36955049/using-gitlab-ci-with-docker-compose-leaves-me-with-container-generated-folders-g