gitlab|记一次使用Docker安装gitlab

安装和使用gitlab 【gitlab|记一次使用Docker安装gitlab】官方文档
使用Docker安装:

## docker-compose.yml version: '3.6' services: web: image: 'gitlab/gitlab-ce:14.7.3-ce.0' restart: always hostname: '192.168.64.128' environment: GITLAB_OMNIBUS_CONFIG: | external_url 'http://192.168.64.128' # Add any other gitlab.rb configuration here, each on its own line ports: - '80:80' - '443:443' - '223:22' volumes: - '/home/gitlab/config:/etc/gitlab' - '/home/gitlab/logs:/var/log/gitlab' - '/home/gitlab/data:/var/opt/gitlab' shm_size: '256m'

注意: 第一次启动时间较长,耐心等待
初始密码位置:/etc/gitlab/initial_root_password (容器内)

    推荐阅读