gitlab搭建

使用docker搭建,docker-compose文件如下

version: '3.8'

  services:
    gitlab:
      image: gitlab/gitlab-ce
      container_name: gitlab
      ports:
        - "1080:80"
        - "1022:22"
      volumes:
        - /home/gitlab_data/etc:/etc/gitlab
        - /home/gitlab_data/log:/var/log/gitlab
        - /home/gitlab_data/opt:/var/opt/gitlab
      restart: always
      privileged: true

创建成功后进入容器后台

docker exec -it '容器ID' /bin/bash

查看初始密码

cat /etc/gitlab/initial_root_password

修改配置文件中gitlab服务器的ip地址

vi /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
## GitLab settings
gitlab:
  ## Web server settings (note: host is the FQDN, do not include http://)
  host: 192.168.1.10
  port: 80
  https: false

 

 

 

暂无评论

发送评论 编辑评论


				
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
Emoji
小恐龙
花!
Coolapk
呼呼
上一篇
下一篇