如何防止gitlab通过docker-compose文件中的https:// gitlab /链接到自身?

时间:2020-04-10 18:08:54

标签: docker-compose gitlab gitlab-omnibus

我在docker容器中运行了gitlab,并且我遇到的问题与this question中的问题相同。

gitlab中指向自身的链接引用的是https://gitlab/,而不是https://gitlab.mydomain.com。有没有办法防止这种情况在docker-compose.yml文件中发生?

我当前的文件看起来像这样,与Docker documentation中的文件几乎完全一样,所以我不知道错误是从哪里来的。

web:
        image: 'gitlab/gitlab-ce:latest'
        restart: always
        hostname: gitlab.mydomain.com
        environment:
                GITLAB_OMNIBUS_CONFIG_: |
                        external_url: 'https://gitlab.mydomain.com'
        ports:
                - '8080:80'
        volumes:
                - '/opt/gitlab/config:/etc/gitlab'
                - '/opt/gitlab/logs:/var/log/gitlab'
                - '/opt/gitlab/data:/var/opt/gitlab'

0 个答案:

没有答案
相关问题