gitlab - choose if you want traefik or not
This commit is contained in:
parent
d009a295bc
commit
ad481b9f4f
@ -77,6 +77,7 @@ Example variables
|
|||||||
- 10.0.1.0/24
|
- 10.0.1.0/24
|
||||||
redisinsignt_watchtower_enable: true
|
redisinsignt_watchtower_enable: true
|
||||||
|
|
||||||
|
gitlab_through_traefik: true
|
||||||
gitlab_image: gitlab/gitlab-ce
|
gitlab_image: gitlab/gitlab-ce
|
||||||
gitlab_version: 'latest'
|
gitlab_version: 'latest'
|
||||||
gitlab_root_password: 'vault-this-thingy'
|
gitlab_root_password: 'vault-this-thingy'
|
||||||
|
@ -22,6 +22,7 @@ services:
|
|||||||
container_name: gitlab
|
container_name: gitlab
|
||||||
restart: 'unless-stopped'
|
restart: 'unless-stopped'
|
||||||
labels:
|
labels:
|
||||||
|
{% if gitlab_through_traefik == "true" %}
|
||||||
traefik.enable: "true"
|
traefik.enable: "true"
|
||||||
{% if gitlab_headers_accesscontrolallowcredentials is defined %}
|
{% if gitlab_headers_accesscontrolallowcredentials is defined %}
|
||||||
traefik.http.middlewares.gitlab.headers.accesscontrolallowcredentials: "{{ gitlab_headers_accesscontrolallowcredentials }}"
|
traefik.http.middlewares.gitlab.headers.accesscontrolallowcredentials: "{{ gitlab_headers_accesscontrolallowcredentials }}"
|
||||||
@ -50,6 +51,7 @@ services:
|
|||||||
traefik.http.routers.gitlab.middlewares: "clientips@docker"
|
traefik.http.routers.gitlab.middlewares: "clientips@docker"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
traefik.http.services.gitlab.loadbalancer.server.port: "80"
|
traefik.http.services.gitlab.loadbalancer.server.port: "80"
|
||||||
|
{% endif %}
|
||||||
com.centurylinklabs.watchtower.enable: {{ gitlab_watchtower_enable | default('true') }}
|
com.centurylinklabs.watchtower.enable: {{ gitlab_watchtower_enable | default('true') }}
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user