Ci deploy with several containers

Hi everyone, I’m writing to you because I’m lost

Before starting my project, I want to setup a CI/CD with a really simple test project.
I don’t want to use kubernetes, heroku or such plateforms. I have a simple unix server with nginx reverse proxy and I want to deploy on it.

When I try with a simple hello world project everything is fine, gitlab CI builds an image based on the Dokerfile and store it into gitlab registry, my production server pull the image and restart the container. Everything looks magic.

Next step is to add a second container handling my mongo db. So, I want the same flow but I really don’t know how to do it ! It’s working fine with docker-compose on my dev environment.

But how can I deploy so my server pulls the app image from gitlab registry, the db image from docker and launch both containers (app and db)

My google page is all purple for “already visited” and I still have no idea how to do this, any idea ? Am I thinking wrong ?

Thank you for your help

bgallet