Now two separate services
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
gitlab-runner:
|
||||
gitlab-runner-config:
|
||||
image: gitlab/gitlab-runner:alpine
|
||||
command:
|
||||
- register
|
||||
@@ -24,8 +24,6 @@ services:
|
||||
{{- end}}
|
||||
- --run-untagged
|
||||
- --locked=false
|
||||
- ;
|
||||
- run
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
@@ -41,4 +39,26 @@ services:
|
||||
traefik.enable: false
|
||||
restart: on-failure
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /RancherCattle/${DATA_DIR}:/etc/gitlab-runner
|
||||
gitlab-runner:
|
||||
image: gitlab/gitlab-runner:alpine
|
||||
command:
|
||||
- run
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 1.0.0.1
|
||||
{{- if .Values.GITLAB_LINK}}
|
||||
external_links:
|
||||
- ${GITLAB_LINK}{{- if .Values.GITLAB_LINK_ALIAS}}:${GITLAB_LINK_ALIAS}{{- end}}
|
||||
{{- end}}
|
||||
labels:
|
||||
io.rancher.container.pull_image: always
|
||||
{{- if .Values.HOST_LABEL}}
|
||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||
{{- end}}
|
||||
io.rancher.sidekicks: gitlab-runner-config
|
||||
traefik.enable: false
|
||||
restart: on-failure
|
||||
volumes-from:
|
||||
- gitlab-runner-config
|
||||
@@ -64,4 +64,12 @@ catalog:
|
||||
(Optional) Create an alias for the service.
|
||||
default: "gitlab"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
- variable: "DATA_DIR"
|
||||
label: "Data Directory"
|
||||
description: |
|
||||
The directory to store persistent data for the stack.
|
||||
default: "Personal/GitLab-Runner"
|
||||
required: true
|
||||
type: string
|
||||
Reference in New Issue
Block a user