feat: add README

This commit is contained in:
Sun-ZhenXing
2025-09-24 14:16:10 +08:00
parent 232517b58f
commit 70f39867cf
65 changed files with 1695 additions and 103 deletions

0
src/gitlab/.env.example Normal file
View File

32
src/gitlab/README.md Normal file
View File

@@ -0,0 +1,32 @@
# GitLab
[English](./README.md) | [中文](./README.zh.md)
This service sets up a GitLab service.
## Configuration
Edit the `config/gitlab.rb` file and add the following content:
```ruby
external_url 'http://my-server.local:5080'
nginx['listen_port'] = 5080
gitlab_rails['gitlab_ssh_host'] = 'my-server'
gitlab_rails['gitlab_shell_ssh_port'] = 5022
```
## Services
- `gitlab`: The GitLab service.
## Ports
- `5443:443` (HTTPS)
- `5080:80` (HTTP)
- `5022:22` (SSH)
## Volumes
- `config`: A volume for storing GitLab configuration.
- `logs`: A volume for storing GitLab logs.
- `data`: A volume for storing GitLab data.

32
src/gitlab/README.zh.md Normal file
View File

@@ -0,0 +1,32 @@
# GitLab
[English](./README.md) | [中文](./README.zh.md)
此服务用于搭建一个 GitLab 服务。
## 配置
编辑 `config/gitlab.rb` 文件,添加以下内容:
```ruby
external_url 'http://my-server.local:5080'
nginx['listen_port'] = 5080
gitlab_rails['gitlab_ssh_host'] = 'my-server'
gitlab_rails['gitlab_shell_ssh_port'] = 5022
```
## 服务
- `gitlab`: GitLab 服务。
## 端口
- `5443:443` (HTTPS)
- `5080:80` (HTTP)
- `5022:22` (SSH)
## 卷
- `config`: 用于存储 GitLab 配置的卷。
- `logs`: 用于存储 GitLab 日志的卷。
- `data`: 用于存储 GitLab 数据的卷。

View File

@@ -0,0 +1,21 @@
services:
gitlab:
image: gitlab/gitlab-ce:17.10.4-ce.0
container_name: gitlab
restart: unless-stopped
ports:
- "5443:443"
- "5080:80"
- "5022:22"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./config:/etc/gitlab
- logs:/var/log/gitlab
- data:/var/opt/gitlab
extra_hosts:
- host.docker.internal:host-gateway
volumes:
logs:
data: