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