Skip to content

Instantly share code, notes, and snippets.

@iMerica iMerica/docker-compose.yml
Last active Jan 14, 2019

Embed
What would you like to do?
Gitlab Docker Runners
version: '2'
services:
dind:
restart: always
privileged: true
volumes:
- /var/lib/docker
image: docker:18.06.0-ce-dind
command:
- --storage-driver=overlay2
runner:
restart: always
image: gitlab/gitlab-runner:alpine
volumes:
- ./gitlab/runner:/etc/gitlab-runner:Z
environment:
- DOCKER_HOST=tcp://dind:2375
register-runner:
restart: 'no'
image: gitlab/gitlab-runner:alpine
volumes:
- ./gitlab/runner:/etc/gitlab-runner:Z
command:
- register
- --non-interactived
- --locked=false
- --name=Docker Runner
- --executor=docker
- --docker-image=docker:18.06.0-ce-dind
- --docker-volumes=/var/run/docker.sock:/var/run/docker.sock
environment:
- CI_SERVER_URL=https://XXXXXXXX.XXXXX
- REGISTRATION_TOKEN=XXXXXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.