Gitlab创建的项目改成实际服务器ip地址方法

[root@sannian eatjoys-front-min]# docker ps
CONTAINER ID        IMAGE                    COMMAND             CREATED             STATUS                    PORTS                                   NAMES
db3aa2741c94        twang2218/gitlab-ce-zh   "/assets/wrapper"   24 minutes ago      Up 24 minutes (healthy)   22/tcp, 443/tcp, 0.0.0.0:9999->80/tcp   gitlab

先进入容器

[root@sannian eatjoys-front-min]# docker exec -it db3aa2741c94  /bin/bash
root@db3aa2741c94:/# find / -name gitlab.yml
/opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml

编辑配置文件

root@db3aa2741c94:/# vi /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml
production: &base
  #
  # 1. GitLab app settings
  # ==========================

  ## GitLab settings
  gitlab:
    ## Web server settings (note: host is the FQDN, do not include http://)
    host: 47.99.145.156
    port: 80
    https: false

修改host 为实际 ip
重启

root@db3aa2741c94:/# gitlab-ctl restart

然后进入web

Gitlab创建的项目改成实际服务器ip地址方法
完成

上一篇:grep递归查询日志关键字


下一篇:Git命令行指令