gitlab - update registry condition to add traefik label

This commit is contained in:
Ludovic Cartier 2023-10-03 10:30:00 +02:00
parent 89ff9730f1
commit 7170df030e

View File

@ -23,7 +23,7 @@ services:
restart: 'unless-stopped' restart: 'unless-stopped'
labels: labels:
traefik.enable: "true" 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 }}`)" traefik.http.routers.gitlab.rule: "Host(`{{ gitlab_domain }}`) || Host(`{{ gitlab_registry_domain }}`)"
{% else %} {% else %}
traefik.http.routers.gitlab.rule: "Host(`{{ gitlab_domain }}`)" traefik.http.routers.gitlab.rule: "Host(`{{ gitlab_domain }}`)"