From 42aa2d00882ebd7bedbac7f7c4d4eef06f765b4c Mon Sep 17 00:00:00 2001 From: Leon Adomaitis <47161699+GunniBusch@users.noreply.github.com> Date: Sun, 23 Jun 2024 03:52:29 +0200 Subject: [PATCH 1/4] add first outline of the gitlab compose file --- templates/compose/gitlab.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 templates/compose/gitlab.yaml diff --git a/templates/compose/gitlab.yaml b/templates/compose/gitlab.yaml new file mode 100644 index 000000000..c1eeddd29 --- /dev/null +++ b/templates/compose/gitlab.yaml @@ -0,0 +1,18 @@ +services: + gitlab: + image: 'gitlab/gitlab-ce:latest' + container_name: gitlab + restart: always + hostname: '${SERVICE_URL_GITLAB}' + environment: + - SERVICE_FQDN_GITLAB_80 + - EXTERNAL_URL=$SERVICE_FQDN_GITLAB + - GITLAB_HOST=$SERVICE_FQDN_GITLAB + - GITLAB_OMNIBUS_CONFIG="external_url=${SERVICE_FQDN_GITLAB}; gitlab_rails['gitlab_shell_ssh_port'] = 2222" + ports: + - '2222:22' + volumes: + - 'gitlab-config:/etc/gitlab' + - 'gitlab-logs:/var/log/gitlab' + - 'gitlab-data:/var/opt/gitlab' + shm_size: 256m From 691ae04ca96d04555449848aaf54079eba493d51 Mon Sep 17 00:00:00 2001 From: Leon Adomaitis <47161699+GunniBusch@users.noreply.github.com> Date: Sun, 23 Jun 2024 04:02:46 +0200 Subject: [PATCH 2/4] Add gitlab.svg --- public/svgs/gitlab.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 public/svgs/gitlab.svg diff --git a/public/svgs/gitlab.svg b/public/svgs/gitlab.svg new file mode 100644 index 000000000..95a22f101 --- /dev/null +++ b/public/svgs/gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file From 768e27d68c4c706bf857c36005c6505806b01ada Mon Sep 17 00:00:00 2001 From: Leon Adomaitis <47161699+GunniBusch@users.noreply.github.com> Date: Sun, 23 Jun 2024 04:12:03 +0200 Subject: [PATCH 3/4] Add metadata --- templates/compose/gitlab.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/compose/gitlab.yaml b/templates/compose/gitlab.yaml index c1eeddd29..d57a5647b 100644 --- a/templates/compose/gitlab.yaml +++ b/templates/compose/gitlab.yaml @@ -1,3 +1,9 @@ +# documentation: https://docs.gitlab.com/ee/install/docker.html +# slogan: GitLab: The all-in-one DevOps platform for seamless collaboration and continuous delivery. +# tags: gitlab, devops, continuousintegration, continuousdelivery, versioncontrol, collaboration, ci/cd, sourcecodemanagement, automation, codereview, agiledevelopment, projectmanagement, opensource, repositoryhosting, pipelineautomation, git, softwaredevelopment, issuetracking, teamcollaboration, deploymentautomation, securityintegration +# icon: svgs/gitlab.svg +# port: 80 + services: gitlab: image: 'gitlab/gitlab-ce:latest' From 53032469e73dc306bb64b6099b578f535b2985fd Mon Sep 17 00:00:00 2001 From: Leon Adomaitis <47161699+GunniBusch@users.noreply.github.com> Date: Sun, 23 Jun 2024 21:43:14 +0200 Subject: [PATCH 4/4] added smtp config --- templates/compose/gitlab.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/templates/compose/gitlab.yaml b/templates/compose/gitlab.yaml index d57a5647b..bb103050b 100644 --- a/templates/compose/gitlab.yaml +++ b/templates/compose/gitlab.yaml @@ -14,7 +14,17 @@ services: - SERVICE_FQDN_GITLAB_80 - EXTERNAL_URL=$SERVICE_FQDN_GITLAB - GITLAB_HOST=$SERVICE_FQDN_GITLAB - - GITLAB_OMNIBUS_CONFIG="external_url=${SERVICE_FQDN_GITLAB}; gitlab_rails['gitlab_shell_ssh_port'] = 2222" + - GITLAB_SMTP_ENABLE=${GITLAB_SMTP_ENABLE:-false} + - GITLAB_SMTP_ADDRESS=$GITLAB_SMTP_ADDRESS + - GITLAB_SMTP_PORT=${GITLAB_SMTP_PORT:-587} + - GITLAB_SMTP_USER_NAME=${GITLAB_SMTP_USER_NAME} + - GITLAB_SMTP_PASSWORD=${GITLAB_SMTP_PASSWORD} + - GITLAB_SMTP_DOMAIN=${GITLAB_SMTP_DOMAIN} + - GITLAB_STARTTLS_AUTO=${GITLAB_STARTTLS_AUTO:-true} + - GITLAB_SMTP_TLS=${GITLAB_SMTP_TLS:-false} + - GITLAB_EMAIL_FROM=${GITLAB_EMAIL_FROM} + - GITLAB_EMAIL_REPLY_TO=$GITLAB_EMAIL_REPLY_TO + - 'GITLAB_OMNIBUS_CONFIG=external_url "${SERVICE_FQDN_GITLAB}"; nginx["listen_https"] = false; nginx["listen_port"] = 80; gitlab_rails["gitlab_shell_ssh_port"] = 2222; gitlab_rails["smtp_enable"] = ${GITLAB_SMTP_ENABLE}; gitlab_rails["smtp_address"] = "${GITLAB_SMTP_ADDRESS}"; gitlab_rails["smtp_port"] = ${GITLAB_SMTP_PORT}; gitlab_rails["smtp_user_name"] = "${GITLAB_SMTP_USER_NAME}"; gitlab_rails["smtp_password"] = "${GITLAB_SMTP_PASSWORD}"; gitlab_rails["smtp_domain"] = "${GITLAB_SMTP_DOMAIN}"; gitlab_rails["smtp_authentication"] = "login"; gitlab_rails["smtp_enable_starttls_auto"] = ${GITLAB_STARTTLS_AUTO}; gitlab_rails["smtp_tls"] = ${GITLAB_SMTP_TLS}; gitlab_rails["gitlab_email_from"] = "${GITLAB_EMAIL_FROM}"; gitlab_rails["gitlab_email_reply_to"] = "${GITLAB_EMAIL_REPLY_TO}";' ports: - '2222:22' volumes: @@ -22,3 +32,4 @@ services: - 'gitlab-logs:/var/log/gitlab' - 'gitlab-data:/var/opt/gitlab' shm_size: 256m +