From 7170df030e5f0c853a42da84a1d8b9531db5dbd5 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Tue, 3 Oct 2023 10:30:00 +0200 Subject: [PATCH] gitlab - update registry condition to add traefik label --- templates/compose/gitlab.yml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/compose/gitlab.yml.j2 b/templates/compose/gitlab.yml.j2 index 2562043..b88fd8b 100644 --- a/templates/compose/gitlab.yml.j2 +++ b/templates/compose/gitlab.yml.j2 @@ -23,7 +23,7 @@ services: restart: 'unless-stopped' labels: traefik.enable: "true" -{% if gitlab_registry is sameas true %} +{% if gitlab_registry_domain is defined %} traefik.http.routers.gitlab.rule: "Host(`{{ gitlab_domain }}`) || Host(`{{ gitlab_registry_domain }}`)" {% else %} traefik.http.routers.gitlab.rule: "Host(`{{ gitlab_domain }}`)"