Add more port flexibility to gitlab (#335)

* added questions to alter the default ports

* Implemented port variability
This commit is contained in:
ununseptium 2016-11-23 18:55:34 +01:00 committed by Hussein Galal
parent 32dc037970
commit 08a8804bc4
2 changed files with 21 additions and 2 deletions

View File

@ -1,7 +1,8 @@
gitlab-server:
ports:
- 22:22/tcp
- 80:80/tcp
- ${ssh_port}:22/tcp
- ${http_port}:80/tcp
- ${https_port}:443/tcp
labels:
io.rancher.sidekicks: gitlab-data
hostname: ${gitlab_hostname}

View File

@ -13,6 +13,24 @@
required: true
default: "git.example.com"
type: "string"
- variable: "http_port"
description: "HTTP port to expose on host. Will be used to bind TCP"
label: "HTTP port:"
required: true
default: 80
type: "string"
- variable: "https_port"
description: "HTTPS port to expose on host. Will be used to bind TCP"
label: "HTTPS port:"
required: true
default: 443
type: "string"
- variable: "ssh_port"
description: "SSH port to expose on host. Will be used to bind TCP"
label: "SSH port:"
required: true
default: 22
type: "string"
gitlab-server:
scale: 1