You may use it like this in your .gitlab-ci.yml
file.
image: pygabo/gitlab-docker-compose:latest
services:
- docker:dind
before_script:
- docker info
- docker-compose --version
build image:
stage: build
script:
- docker-compose build