Hello,
I am using gitlab CE, on docker that is fronted with Traefik for proxy, except all the gitlab pages doesnt work , when i create the pages i am getting a 502 as seen in the snapshot . can someone guide?
version: '3.4'
services:
gitlab:
image: 'gitlab/gitlab-ce:15.11.8-ce.0'
container_name: test-gitlab
restart: always
expose:
- 15000
- 15001
- 15002
labels:
traefik.docker.network: "traefiknet"
traefik.enable: "true"
traefik.http.routers.gitlab.entrypoints: "https"
traefik.http.routers.gitlab.rule: "Host(`gitlab.test.abc.org`)"
traefik.http.routers.gitlab.tls: "true"
traefik.http.routers.gitlab.service: "gitlab"
traefik.http.services.gitlab.loadbalancer.server.port: 15000
traefik.http.routers.registry.entrypoints: "https"
traefik.http.routers.registry.rule: "Host(`registry.test.abc.org`)"
traefik.http.routers.registry.tls: "true"
traefik.http.routers.registry.service: "registry"
traefik.http.services.registry.loadbalancer.server.port: 15001
traefik.http.routers.pages.entrypoints: "https"
traefik.http.routers.pages.rule: "Host(`test-pages.abc.org`) || HostRegexp(`{subdomain:[a-z]+}.test-pages.abc.org`)"
traefik.http.routers.pages.tls: "true"
traefik.http.routers.pages.service: "pages"
traefik.http.services.pages.loadbalancer.server.port: 15002
traefik.http.services.pages.loadbalancer.server.scheme: "https"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.test.abc.org'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
nginx['listen_port'] = 15000
nginx['listen_https'] = false
nginx['http2_enabled'] = false
nginx['proxy_set_headers'] = {
"Host" => "$$http_host",
"X-Real-IP" => "$$remote_addr",
"X-Forwarded-For" => "$$proxy_add_x_forwarded_for",
"X-Forwarded-Proto" => "https",
"X-Forwarded-Ssl" => "on"
}
gitlab_rails['registry_enabled'] = true
registry['enable'] = true
registry_external_url 'https://registry.test.abc.org'
registry_nginx['listen_port'] = 15001
registry_nginx['listen_https'] = false
registry_nginx['proxy_set_headers'] = {
"Host" => "$$http_host",
"X-Real-IP" => "$$remote_addr",
"X-Forwarded-For" => "$$proxy_add_x_forwarded_for",
"X-Forwarded-Proto" => "https",
"X-Forwarded-Ssl" => "on"
}
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = 'mta.abc.org'
gitlab_rails['smtp_port'] = '25'
gitlab_rails['smtp_domain'] = 'mta.abc.org'
gitlab_rails['smtp_authentication'] = false
gitlab_rails['gitlab_email_from'] = 'test-gitlab@abc.org'
pages_external_url 'https://test-pages.abc.org'
gitlab_pages['inplace_chroot'] = true
pages_nginx['enable'] = true
pages_nginx['ssl_certificate'] = "/etc/gitlab/ssl/star_test-pages_abc_org.crt"
pages_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/star_test-pages_abc_org.key"
pages_nginx['listen_port'] = 15002
pages_nginx['redirect_http_to_https'] = true
gitlab_pages['listen_proxy'] = '0.0.0.0:8090'
ports:
- '2222:22'
networks:
- traefiknet
volumes:
- "gitlab_new_logs:/var/log/gitlab"
- "gitlab_new_data:/var/opt/gitlab"
- "gitlab_new_config:/etc/gitlab"
- "/data/gitlab/backup:/var/opt/gitlab/backups"
- "./certs/:/etc/gitlab/ssl"
volumes:
gitlab_new_logs:
external: true
gitlab_new_data:
external: true
gitlab_new_config:
external: true
networks:
traefiknet:
external: true