gitlab - choose if you want traefik or not

This commit is contained in:
Ludovic Cartier
2024-06-13 14:34:02 +02:00
parent d009a295bc
commit ad481b9f4f
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ services:
container_name: gitlab
restart: 'unless-stopped'
labels:
{% if gitlab_through_traefik == "true" %}
traefik.enable: "true"
{% if gitlab_headers_accesscontrolallowcredentials is defined %}
traefik.http.middlewares.gitlab.headers.accesscontrolallowcredentials: "{{ gitlab_headers_accesscontrolallowcredentials }}"
@ -50,6 +51,7 @@ services:
traefik.http.routers.gitlab.middlewares: "clientips@docker"
{% endif %}
traefik.http.services.gitlab.loadbalancer.server.port: "80"
{% endif %}
com.centurylinklabs.watchtower.enable: {{ gitlab_watchtower_enable | default('true') }}
cap_add:
- SYS_ADMIN