Install Gitlab Self-Managed using docker-compose error

I try to install gitlab self-manage using docker compose as following compose file

  gitlab.itmx.co.th:
    image: gitlab/gitlab-ce:15.3.1-ce.0
    hostname: gitlab.itmx.co.th
    restart: always
    user: root
    privileged: true
    expose:
      - 22
      - 80
      - 443
    volumes:
      - /app/gitlab15_home/data:/var/opt/gitlab
      - /app/gitlab15_home/logs:/var/log/gitlab
      - /app/gitlab15_home/config:/etc/gitlab
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://gitlab.itmx.co.th'
    shm_size: '256m'

after running the docker compose I got following error from logs and from URL it got 503 service unavailable, note that my environment is run behind proxy so that “10.211.1.215:8080” is the proxy setting in by passing environment variable into the docker container.

[2022-08-28T02:04:46+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/chef-stacktrace.out
[2022-08-28T02:04:46+00:00] FATAL: ---------------------------------------------------------------------------------------
[2022-08-28T02:04:46+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2022-08-28T02:04:46+00:00] FATAL: ---------------------------------------------------------------------------------------
[2022-08-28T02:04:46+00:00] FATAL: Chef::Exceptions::MultipleFailures: Multiple failures occurred:
* Mixlib::ShellOut::ShellCommandFailed occurred in Chef Infra Client run: rails_migration[gitlab-rails] (gitlab::database_migrations line 51) had an error: Mixlib::ShellOut::ShellCommandFailed: bash[migrate gitlab-rails database] (gitlab::database_migrations line 18) had an error: Mixlib::ShellOut::ShellCommandFailed: Command execution failed. STDOUT/STDERR suppressed for sensitive resource
* Mixlib::ShellOut::ShellCommandFailed occurred in delayed notification: execute[clear the gitlab-rails cache] (gitlab::gitlab-rails line 478) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/bin/gitlab-rake cache:clear ----
STDOUT:
STDERR: rake aborted!
URI::InvalidURIError: bad URI(is not URI?): "10.211.1.215:8080"
/opt/gitlab/embedded/service/gitlab-rails/config/application.rb:15:in `<top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:9:in `require'
/opt/gitlab/embedded/service/gitlab-rails/Rakefile:9:in `<top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)
---- End output of /opt/gitlab/bin/gitlab-rake cache:clear ----
Ran /opt/gitlab/bin/gitlab-rake cache:clear returned 1

where environment variable in the container already set proxy
declare -x HTTPS_PROXY=“10.211.1.215:8080”
declare -x HTTP_PROXY=“10.211.1.215:8080”

please help why I’m getting this error. Thanks

I try to remove this two declare environment variable and it work

change —
declare -x https_proxy=“10.211.1.215:8080”
declare -x http_proxy=“10.211.1.215:8080”

to
declare -x https_proxy=“”
declare -x http_proxy=“”

can anyone explain, why Gem error like that?