docker gitlab安装和配置

使用docker安装

docker-compose.yaml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version: "3.8"

services:
gitlab:
container_name: ts_gitlab
image: gitlab/gitlab-ce:13.2.6-ce.0
ports:
- "8082:8082"
volumes:
- "./data:/var/opt/gitlab"
- "./logs:/var/log/gitlab"
- "./config:/etc/gitlab"
- "/etc/localtime:/etc/localtime"
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url "http://ip:8082"
gitlab_rails['time_zone']=CST
restart: always

GITLAB_OMNIBUS_CONFIG查看https://docs.gitlab.com/omnibus/docker/

编辑站点信息

vi /etc/gitlab.rb

配置

gitlab-ctl reconfigure

  • 本文作者: forever杨
  • 本文链接: https://blog.yl-online.top/posts/a4f9cef0.html
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。如果文章内容对你有用,请记录到你的笔记中。本博客站点随时会停止服务,请不要收藏、转载!