Skip to content

Instantly share code, notes, and snippets.

@DreamShaded
Forked from bkuhl/.gitlab-ci.yml
Created October 24, 2021 21:10
Show Gist options
  • Save DreamShaded/43697d3a4a55e166e44cf128da332329 to your computer and use it in GitHub Desktop.
Save DreamShaded/43697d3a4a55e166e44cf128da332329 to your computer and use it in GitHub Desktop.
How to use docker-compose in GitLab CI
# Using edge-git ensures we're always pulling the latest
# You can lock into a specific version using the *-git tags
# on https://hub.docker.com/_/docker/
image: docker:edge-git
services:
- docker:dind
# If you only need compose in a specific step definitely put this
# only in that step so it's not executed unnecessarily
before_script:
- apk add --no-cache py2-pip && pip install docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment