✨ 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:
parent
659f910f08
commit
4fc5f22cb3
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
# GitLab
|
||||
|
||||
ce 为社区版,ee 为企业版。
|
||||
|
||||
### 使用建议
|
||||
|
||||
- 对于最多 20 个请求每秒或 1,000 个用户,您应该拥有 8 个 vCPU。
|
||||
|
|
|
|||
Loading…
Reference in New Issue