From 08a8804bc4bb47df1a82e7b56625c0e8bd12ece4 Mon Sep 17 00:00:00 2001 From: ununseptium Date: Wed, 23 Nov 2016 18:55:34 +0100 Subject: [PATCH] Add more port flexibility to gitlab (#335) * added questions to alter the default ports * Implemented port variability --- templates/gitlab/0/docker-compose.yml | 5 +++-- templates/gitlab/0/rancher-compose.yml | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/templates/gitlab/0/docker-compose.yml b/templates/gitlab/0/docker-compose.yml index cd62837..d7d7205 100644 --- a/templates/gitlab/0/docker-compose.yml +++ b/templates/gitlab/0/docker-compose.yml @@ -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} diff --git a/templates/gitlab/0/rancher-compose.yml b/templates/gitlab/0/rancher-compose.yml index 47a9b81..bdf31bc 100644 --- a/templates/gitlab/0/rancher-compose.yml +++ b/templates/gitlab/0/rancher-compose.yml @@ -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