gitlab docker 中文版

version: "3"
services:
gitlab:
        image: fjcanyue/gitlab-ce-zh:12.0.12
        restart: unless-stopped
        hostname: 'gitlab.do.io'
        environment:
            TZ: 'Asia/Shanghai'
            GITLAB_OMNIBUS_CONFIG: |
                external_url 'http://gitlab.do.io'
                gitlab_rails['time_zone'] = 'Asia/Shanghai'
                # 需要配置到 gitlab.rb 中的配置可以在这里配置,每个配置一行,注意缩进。
                # 比如下面的电子邮件的配置:
                # gitlab_rails['smtp_enable'] = true
                # gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
                # gitlab_rails['smtp_port'] = 465
                # gitlab_rails['smtp_user_name'] = "[email protected]"
                # gitlab_rails['smtp_password'] = "password"
                # gitlab_rails['smtp_authentication'] = "login"
                # gitlab_rails['smtp_enable_starttls_auto'] = true
                # gitlab_rails['smtp_tls'] = true
                # gitlab_rails['gitlab_email_from'] = '[email protected]'
        ports:
            - '8880:80'
            - '5443:443'
            - '2222:22'
        volumes:
            - ./config:/etc/gitlab
            - ./data:/var/opt/gitlab
            - ./logs:/var/log/gitlab

如果数据文件迁移到另外一台机器,启动是可能会遇到没有权限的问题,可使用下面命令解决:
docker exec -it update-permissions

你可能感兴趣的:(docker)