feat: 添加 Gitea 和 Gitlab 的 docker-compose 配置及 README 文档

This commit is contained in:
2025-07-20 13:59:11 +08:00
parent d2562dd197
commit b16d2e0163
4 changed files with 51 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
# Gitlab CE
## 下载配置
1. 创建一些文件夹
```bash
mkdir -p /opt/docker/gitlab && cd /opt/docker/gitlab
```
2. 下载 docker-compose.yml
```bash
curl -fSL https://i.sugarscat.cn/i/script/raw/main/docker/compose/gitlab/docker-compose.yml > docker-compose.yml
```
## docker-compose 部署
1. 修改配置
```bash
vim docker-compose.yml
```
2. 启动
```bash
docker-compose up -d
```

View File

@@ -0,0 +1,19 @@
services:
gitlab:
image: gitlab/gitlab:17.11.1-ce.0
container_name: gitlab
restart: always
network_mode: bridge
deploy:
resources:
limits:
cpus: '3'
memory: '6G'
ports:
- "1443:443"
- "1080:80"
- "1022:22"
volumes:
- ./data/etc:/etc/gitlab
- ./data/log:/var/log/gitlab
- ./data/opt:/var/opt/gitlab