1
0
Fork 0

feat(gitlab): add community edition support and improve configuration

- add new gitlab 18.5.1-ce.0 community edition with data.yml and docker-compose.yml
- standardize SSH port environment variable naming from PANEL_APP_PORT_22 to PANEL_APP_PORT_SSH across both editions
- update SSH port labels for better clarity in both English and Chinese
- enhance README with edition clarification (ce for community, ee for enterprise)
This commit is contained in:
pooneyy 2025-10-31 00:28:43 +08:00
parent 659f910f08
commit 4fc5f22cb3
No known key found for this signature in database
5 changed files with 49 additions and 4 deletions

View File

@ -0,0 +1,18 @@
additionalProperties:
formFields:
- default: 8080
envKey: PANEL_APP_PORT_HTTP
labelEn: HTTP Port
labelZh: HTTP 端口
random: false
required: true
rule: paramPort
type: number
- default: 8022
envKey: PANEL_APP_PORT_SSH
labelEn: SSH Port
labelZh: SSH 端口
random: false
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,25 @@
version: "3.6"
services:
gitlab-jh:
image: gitlab/gitlab-ce:18.3.5-ce.0
container_name: ${CONTAINER_NAME}
hostname: localhost
restart: always
networks:
- 1panel-network
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost/'
ports:
- ${PANEL_APP_PORT_HTTP}:80
- ${PANEL_APP_PORT_SSH}:22
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'
- './data:/var/opt/gitlab'
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

View File

@ -9,9 +9,9 @@ additionalProperties:
rule: paramPort
type: number
- default: 8022
envKey: PANEL_APP_PORT_22
labelEn: Port 22 in container
labelZh: 容器内的 22 端口
envKey: PANEL_APP_PORT_SSH
labelEn: SSH Port
labelZh: SSH 端口
random: false
required: true
rule: paramPort

View File

@ -12,7 +12,7 @@ services:
external_url 'http://localhost/'
ports:
- ${PANEL_APP_PORT_HTTP}:80
- ${PANEL_APP_PORT_22}:22
- ${PANEL_APP_PORT_SSH}:22
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'

View File

@ -1,5 +1,7 @@
# GitLab
ce 为社区版ee 为企业版。
### 使用建议
- 对于最多 20 个请求每秒或 1,000 个用户,您应该拥有 8 个 vCPU。