# gitlab-ee **Repository Path**: ing/gitlab-ee ## Basic Information - **Project Name**: gitlab-ee - **Description**: gitlab-ee 安装与激活 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-22 - **Last Updated**: 2024-08-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Docker安装Gitlab-ee支持ARM64和ADM64 ## !!!生成license需要ruby生成 ## 参考文章 - [【项目管理】Docker安装Gitlab_gitlab-ce gitlab-ee 版本-CSDN博客](https://blog.csdn.net/zhoujinwang/article/details/127764886) - [生成 GitLab EE 许可证_.gitlab-license-CSDN博客](https://blog.csdn.net/huangchonghai/article/details/120916914) - [花了两天,搞了Gitlab-Runner CI/CD实现自动化部署,可比Jenkins香太多啦!!!!_gitlab的cicd取代jenkens-CSDN博客](https://blog.csdn.net/Lee_SmallNorth/article/details/109382552) # 安装Gitlab-EE ```shell `sudo mkdir -p /srv/docker/gitlab-ee/config /srv/docker/gitlab-ee/logs /srv/docker/gitlab-ee/data ``` ```shell sudo docker run --detach \ --publish 8443:443 \ --publish 10084:10084 \ --publish 8222:22 \ --name gitlab \ --restart always \ --volume /srv/docker/gitlab-ee/config:/etc/gitlab \ --volume /srv/docker/gitlab-ee/logs:/var/log/gitlab \ --volume /srv/docker/gitlab-ee/data:/var/opt/gitlab \ zengxs/gitlab:ee ``` ## 配置IP和端口 ```shell external_url 'http://192.168.94.1:10084' # 换成自己的 ``` ## 拷贝生成的license_key.pub ```shell 用 license_key.pub 文件替换 /opt/gitlab/embedded/service/gitlab-rails/.license_encryption_key.pub ``` ## 重启服务 ```shell sudo docker exec -it gitlab gitlab-ctl reconfigure sudo docker restart gitlab ``` ## 激活Gitlab服务,上传GitLabBV.gitlab-license ```shell GitLabBV.gitlab-license 即是许可证,填入 ${address}/admin/subscription ```