https://about.gitlab.com/install/
https://docs.gitlab.com/ee/install/docker.html
https://hub.docker.com/r/gitlab/gitlab-ce/
https://docs.gitlab.com/ee/install/docker.html#install-gitlab-using-docker-compose
docker pull gitlab/gitlab-ce
version: '3.6'
services:
web:
image: "gitlab/gitlab-ce"
restart: always
hostname: 'git.local.lren.org'
container_name: gitlab_1024
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url='http://git.local.lren.org:8929'
ports:
- "8929:8929"
- "22:22"
- "443:443"
volumes:
- './config:/etc/gitlab'
- './data:/var/opt/gitlab'
- './logs:/var/log/gitlab'
1.默认用户root 密码在config/initial_root_password中
2.登录修改密码
3.设置中文
个人设置-localication
#url地址不对
config/gitlab.rb
external_url 'http://git.aijxb.com:9999/'
nginx['listen_port'] = 9999
gitlab_rails['gitlab_shell_ssh_port'] = 10022
ssh端口
gitlab_rails['gitlab_shell_ssh_port'] = 8122
#重新载入配置
docker exec -it my-gitlab gitlab-ctl reconfigure
#windows下docker-compose安装一直失败,后升级wsl2后安装成功