Home unraid docker安装gitlab
Post
Cancel

unraid docker安装gitlab

使用docker安装gitlab

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
docker run
  -d
  --name='GitLab-CE'
  --net='bridge'
  -e TZ="Asia/Shanghai"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="root"
  -e HOST_CONTAINERNAME="GitLab-CE"
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:9080]'
  -l net.unraid.docker.icon='https://raw.githubusercontent.com/tynor88/docker-templates/master/images/gitlab_small.png'
  -p '7888:22/tcp'
  -p '9080:80/tcp'
  -v '/mnt/user/appdata/gitlab/config':'/etc/gitlab':'rw'
  -v '/mnt/user/appdata/gitlab/data':'/var/opt/gitlab':'rw'
  -v '/mnt/user/appdata/gitlab/log':'/var/log/gitlab':'rw'
  --env GITLAB_OMNIBUS_CONFIG="external_url 'http://gitlab.jiangker.cn/'; gitlab_rails['gitlab_shell_ssh_port'] = 7888" 'gitlab/gitlab-ce'
  • external_url 'http://gitlab.jiangker.cn/' 此处的端口为http访问的端口,是容器内端口
  • gitlab_rails['gitlab_shell_ssh_port'] = 7888此处端口为ssh同步代码时的端口,需要和容器内22端口绑定的宿主端口一致

see see 密码

初始密码可以在/mnt/cache/appdata/gitlab/config/initial_root_password中可以看到

This post is licensed under CC BY 4.0 by the author.