Skip to main content

GitLab

GitLab是本地私有代码托管应用,对于程序员来说,应该对Git再熟悉不过了,我也不多介绍了。注意,这样搭建的GitHub是没有管理员账户的,你需要自己进容器修改。


version: '3'

services:

  web:
    image: 'gitlab/gitlab-ee:latest'
    restart: always
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        gitlab_rails['lfs_enabled'] = true
        gitlab_rails['gitlab_default_projects_features_builds'] = false
        gitlab_rails['time_zone'] = 'Asia/Shanghai'
    volumes:
      - './mnt/config:/etc/gitlab'
      - './mnt/logs:/var/log/gitlab'
      - './mnt/data:/var/opt/gitlab'
    ports:
      - '15082:80'
      - '16051:22'