Added gitlab runner process
This commit is contained in:
parent
4448d5b006
commit
1a120274e9
1 changed files with 25 additions and 1 deletions
|
|
@ -38,6 +38,30 @@ services:
|
|||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
|
||||
fyp-runner:
|
||||
image: gitlab/gitlab-runner:${GITLAB_RUNNER_IMAGE_TAG}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- CI_SERVER_URL=${GITLAB_SERVER_URL}
|
||||
- REGISTRATION_TOKEN=${GITLAB_RUNNER_REGISTRATION_TOKEN}
|
||||
- RUNNER_NAME=${GITLAB_RUNNER_NAME}
|
||||
- RUNNER_TAG_LIST=${GITLAB_RUNNER_TAGS}
|
||||
- RUNNER_EXECUTOR=docker
|
||||
- DOCKER_TLS_CERTDIR=
|
||||
- DOCKER_IMAGE=${GITLAB_RUNNER_DOCKER_IMAGE}
|
||||
volumes:
|
||||
- gitlab-runner-config:/etc/gitlab-runner
|
||||
- gitlab-machine-config:/root/.docker/machine
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command:
|
||||
- run
|
||||
- "--working-directory=/home/gitlab-runner"
|
||||
- "--user=gitlab-runner"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
gitlab-runner-config:
|
||||
gitlab-machine-config:
|
||||
Loading…
Reference in a new issue