-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 868 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (28 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: '3'
services:
gitlab-runner:
image: gitlab/gitlab-runner:alpine
container_name: gitlab-runner
restart: unless-stopped
environment:
- PROJECT_REGISTRATION_TOKEN="REPLACE_ME"
- EXECUTOR="Docker"
- DOCKER_IMAGE="alpine"
- DESCRIPTION="docker-runner"
- TAG_LIST="docker, linux"
- RUN_UNTAGGED="true"
- LOCKED="false"
- ACCESS_LEVEL="not_protected"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: register \
--non-interactive \
--url "https://gitlab.com/" \
--registration-token "$PROJECT_REGISTRATION_TOKEN" \
--executor "$EXECUTOR" \
--docker-image "$DOCKER_IMAGE" \
--description "$DESCRIPTION" \
--tag-list "$TAG_LIST" \
--run-untagged "$RUN_UNTAGGED" \
--locked "$LOCKED" \
--access-level "$ACCESS_LEVEL"