Push Error 499 and 502

Hi,
I installed Gitlab with docker compose and configured ldap access, but every time I try to do a push I get the following error:

$ git push --set-upstream origin main

On the main branch
nothing to commit, clean working tree
Object enumeration: 6358, done.
Object count: 100% (6358/6358), done.
Delta compression using up to 8 threads
Compression of objects: 100% (6234/6234), done.
Object writing: 100% (6358/6358), 148.34 MiB | 19.19 MiB/s, done.
Total 6358 (delta 2010), reused 0 (delta 0), reused 0 (from 0).
error: RPC failed; HTTP 499 curl 22 Requested URL returned error: 499
send-pack: unexpected disconnect while reading sideband packet
fatal: remote terminal disconnected unexpectedly
All updated

or 502 if not passed by reverse proxy:

$ git push --set-upstream origin main

Object enumeration: 6358, done.
Object count: 100% (6358/6358), done.
Delta compression using up to 8 threads
Compression of objects: 100% (6234/6234), done.
Object writing: 100% (6358/6358), 148.33 MiB | 21.22 MiB/s, done.
Total 6358 (delta 2013), reused 0 (delta 0), reused 0 (from 0).
error: RPC failed; HTTP 502 curl 22 Requested URL returned error: 502
send-pack: unexpected disconnect while reading sideband packet
fatal: remote terminal disconnected unexpectedly
All updated

below is my docker compose file:

version: '3.9'
services:
  gitlab-mgmt-01:
    image: gitlab/gitlab-ce:latest
    container_name: gitlab-mgmt-01
    restart: always
    hostname: 'gitlab.company.it'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        # Add any other gitlab.rb configuration here, each on its own line
        external_url '${GITLAB_URL}'
        gitlab_rails['gitlab_shell_ssh_port'] = ${GITLAB_SHELL_SSH_PORT}
        gitlab_rails['db_adapter'] = "${GITLAB_DB_TYPE}"
        gitlab_rails['db_encoding'] = "unicode"
        gitlab_rails['db_host'] = "172.18.0.2"
        gitlab_rails['db_database'] = "${GITLAB_DB_NAME}"
        gitlab_rails['db_username'] = "${GITLAB_DB_USER}"
        gitlab_rails['db_password'] = "${GITLAB_DB_PASSWORD}"
        postgresql['enable'] = true
        letsencrypt['enable'] = false
        gitlab_rails['smtp_enable'] = true
        gitlab_rails['smtp_address'] = "${GITLAB_SMTP_ADDRESS}"
        gitlab_rails['smtp_port'] = 465
        gitlab_rails['smtp_user_name'] = "${GITLAB_SMTP_USER_NAME}"
        gitlab_rails['smtp_password'] = "${GITLAB_SMTP_PASSWORD}"
        gitlab_rails['smtp_domain'] = "${GITLAB_SMTP_ADDRESS}"
        gitlab_rails['smtp_authentication'] = "login"
        gitlab_rails['gitlab_email_from'] = "${GITLAB_EMAIL_FROM}"
        gitlab_rails['gitlab_email_reply_to'] = "${GITLAB_EMAIL_REPLY_TO}"
        gitlab_rails['smtp_ssl'] = true        
        gitlab_rails['gitlab_signin_enabled'] = false
        gitlab_rails['ldap_enabled'] = true
        gitlab_rails['ldap_servers'] = {
          'main' => {
            'label' => 'LDAP ',
            'host' =>  '10.0.000.000',
            'port' => 389,
            'uid' => 'uid',
            'bind_dn' => 'uid=********dc=it',
            'password' => 'D9**********h!',
            'encryption' => 'plain',
            'verify_certificates' => false,
            'timeout' => 10,
            'active_directory' => false,
            'base' => 'ou=People,o**********dc=it',
            'lowercase_usernames' => 'false',
            'retry_empty_result_with_codes' => [80],
            'allow_username_or_email_login' => true,
            'block_auto_created_users' => false
          }
        }
    volumes:
      - '/nas/configs/gitlab-mgmt-01/config:/etc/gitlab'
      - '/nas/logs/gitlab-mgmt-01:/var/log/gitlab'
      - '/nas/appdata/gitlab-mgmt-01:/var/opt/gitlab'
    shm_size: '2048m'
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.gitlab-mgmt-01.rule=Host(`gitlab.company.it`)"
      - "traefik.http.routers.gitlab-mgmt-01.entrypoints=web,websecure"
      - "traefik.http.services.gitlab-mgmt-01.loadbalancer.server.port=80"
      - "traefik.http.routers.gitlab-mgmt-01.tls=true"
    networks:
      - Proxy
networks:
  Proxy:
    external: true

is there any way I can debug the push request with? from the rails console I can’t see anything.

Thanks