version:'3.6'services:web:image:'gitlab/gitlab-ee:latest'restart:alwayshostname:'gitlab.example.com'environment:GITLAB_OMNIBUS_CONFIG:|external_url'https://gitlab.example.com'# Add any other gitlab.rb configuration here, each on its own lineports:-'80:80'-'443:443'-'22:22'volumes:-'$GITLAB_HOME/config:/etc/gitlab'-'$GITLAB_HOME/logs:/var/log/gitlab'-'$GITLAB_HOME/data:/var/opt/gitlab'shm_size:'256m'
$cat/etc/gitlab/initial_root_password# WARNING: This value is valid only in the following conditions# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).# 2. Password hasn't been changed manually, either via UI or via command line.## If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.Password:mmPPA7vlzRPgdEgQXu1LnWbok6OUNgiAgoZvhYnCgrw=# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
Gitlab是一个开源的Git代码仓库系统,可以实现自托管的Github项目,即用于构建私有的代码托管平台和项目管理系统。系统基于Ruby on Rails开发,速度快、安全稳定。它拥有与Github类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(Wall)进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用,便于日后有需要的时候进行查找。