Folder rename 2/2

This commit is contained in:
WilliamMiceli
2019-02-05 13:29:04 -05:00
parent 011f5dca05
commit 21589a2867
5 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1 @@
# Gitlab CE

View File

@@ -0,0 +1,36 @@
version: '2'
services:
gitlab-ce:
image: gitlab/gitlab-ce:latest
dns:
- 1.1.1.1
- 1.0.0.1
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://${TRAEFIK_HOST}:${WEB_PORT}'
hostname: ${TRAEFIK_HOST}
labels:
io.rancher.container.pull_image: always
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80"
traefik.frontend.entryPoints: http,https
traefik.frontend.headers.forceSTSHeader: true
traefik.frontend.headers.SSLRedirect: true
traefik.frontend.headers.STSPreload: true
traefik.frontend.headers.STSSeconds: 15552000
{{- else}}
traefik.enable: false
{{- end}}
ports:
- "${WEB_PORT}:80"
# - "${SSH_PORT}:22"
restart: on-failure
volumes:
- /RancherCattleConfig/${DATA_DIR}/Config:/etc/gitlab
- /RancherCattleConfig/${DATA_DIR}/Logs:/var/log/gitlab
- /RancherCattleData/${DATA_DIR}/Data:/var/opt/gitlab

View File

@@ -0,0 +1,42 @@
version: '2'
catalog:
name: Gitlab-CE
version: latest
# description:
# minimum_rancher_version:
# maximum_rancher_version:
# upgrade_from:
questions:
- variable: "HOST_LABEL"
label: "Host Label Key/Value Pair"
description: |
The Label Key/Value pair on the host which containers should be deployed
default: "host.id=Host2"
required: false
type: string
- variable: "TRAEFIK_HOST"
label: "Public Host Domain"
description: |
The host that Traefik will use to provide public access.
Leaving this empty will disable Traefik on this stack.
default: "subdomain.domain.tld"
required: false
type: string
- variable: "WEB_PORT"
label: "Web Port"
description: |
The port to access the web interface on.
default: "20300"
required: true
type: string
- variable: "DATA_DIR"
label: "Data Directory"
description: |
The directory to store persistent data for the stack.
default: "Personal/Gitlab-CE"
required: true
type: string