Gitlab pages domain without wildcard DNS, docker, behind reverse proxy(traefik)

Hi comrades!

Need some help with enabling Gitlab Pages. When i try to follow the link gitlabpages.example.net//<project_slug>. I see error 502.

Can u help m, pls?

This is my docker-compose:

services:
traefik:
container_name: traefik
image: traefik:latest # The official Traefik docker image
restart: always
command:
- "--log.level=DEBUG"
"--api.insecure=true"
"--providers.docker=true"
"--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
"--entrypoints.websecure.address=:443"
"--certificatesresolvers.myresolver.acme.tlschallenge=true"
- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
"--certificatesresolvers.myresolver.acme.email=mail@example.net"
"--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
"443:443" # The HTTPS port
"8080:8080"
volumes:
/var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
./letsencrypt:/letsencrypt
gitlab:
container_name: gitlab
image: 'gitlab/gitlab-ee:latest'
restart: always
hostname: 'gitlab.example.net'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.net'
nginx['listen_port'] = 80
nginx['listen_https'] = false
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_servers'] = {
'main' => {
'label' => 'LDAP',
'host' => 'srv-dc01.example.net',
'port' => 636,
'uid' => 'sAMAccountName',
'base' => 'dc=example,dc=net',
'bind_dn' => 'CN=gitlab,OU=ServiceMails,OU=a=example,DC=example,DC=net',
'password' => '1q2w3e4r%T^Y&U*I',
'encryption' => 'simple_tls',
'verify_certificates' => false,
'timeout' => 10,
'active_directory' => true,
'user_filter' => '(memberof=CN=gitlabusers,OU=GROUPS,OU=example,DC=example,DC=net)',
'lowercase_usernames' => 'true',
'retry_empty_result_with_codes' => [80],
'allow_username_or_email_login' => true,
'group_base' => 'OU=GROUPS,OU=example,DC=example,DC=net',
'admin_group' => 'gitlabadmin',
'block_auto_created_users' => false
}
}
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "mail.example.net"
gitlab_rails['smtp_port'] = 2552
gitlab_rails['smtp_domain'] = "example.net"
gitlab_rails['smtp_user_name'] = "gitlab@example.net"
gitlab_rails['smtp_password'] = '112312'
gitlab_rails['smtp_authentication'] = 'login'
gitlab_rails['gitlab_email_from'] = 'gitlab@example.net'
gitlab_rails['smtp_openssl_verify_mode'] = 'none'
gitlab_rails['smtp_enable_starttls_auto'] = false
gitlab_rails['smtp_tls'] = false
gitlab_rails['smtp_ssl'] = false
gitlab_rails['smtp_force_ssl'] = false
Pages
pages_external_url "http://gitlabpages.example.net"
gitlab_pages['enable']= true
gitlab_pages["namespace_in_path"] = true
gitlab_pages['listen_proxy'] = '0.0.0.0:8090'
pages_nginx['enable'] = true
pages_nginx['listen_https'] = false
pages_nginx['listen_port'] = 5010
pages_nginx['proxy_set_headers'] = {"X-Forwarded-Proto" => "https","X-Forwarded-Ssl" => "on"}
Add any other gitlab.rb configuration here, each on its own line
ports:
'2222:22'
labels:
"traefik.enable=true"
"traefik.http.routers.gitlab.rule=Host(\gitlab.example.net`)"`
"traefik.http.routers.gitlab.service=gitlab"
"traefik.http.routers.gitlab.entrypoints=websecure"
"traefik.http.services.gitlab.loadbalancer.server.port=80"
"traefik.http.routers.gitlab.tls=true"
"traefik.http.routers.gitlab.tls.certresolver=myresolver"
Pages
"traefik.http.routers.gitlab-pages.rule=Host(\gitlabpages.example.net`)"`
"traefik.http.routers.gitlab-pages.service=gitlab-pages"
"traefik.http.routers.gitlab-pages.entrypoints=websecure"
"traefik.http.routers.gitlab-pages.tls.certresolver=myresolver"
"traefik.http.routers.gitlab-pages.tls=true"
"traefik.http.services.gitlab-pages.loadbalancer.server.port=5010"
volumes:
'/work/gitlab/config:/etc/gitlab'
'/work/gitlab/logs:/var/log/gitlab'
'/work/gitlab/data:/var/opt/gitlab'
type or paste code here