Now two separate services
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gitlab-runner:
|
gitlab-runner-config:
|
||||||
image: gitlab/gitlab-runner:alpine
|
image: gitlab/gitlab-runner:alpine
|
||||||
command:
|
command:
|
||||||
- register
|
- register
|
||||||
@@ -24,8 +24,6 @@ services:
|
|||||||
{{- end}}
|
{{- end}}
|
||||||
- --run-untagged
|
- --run-untagged
|
||||||
- --locked=false
|
- --locked=false
|
||||||
- ;
|
|
||||||
- run
|
|
||||||
dns:
|
dns:
|
||||||
- 1.1.1.1
|
- 1.1.1.1
|
||||||
- 1.0.0.1
|
- 1.0.0.1
|
||||||
@@ -42,3 +40,25 @@ services:
|
|||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
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
|
||||||
@@ -65,3 +65,11 @@ catalog:
|
|||||||
default: "gitlab"
|
default: "gitlab"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
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