This commit is contained in:
Zengtudor 2024-10-16 17:03:29 +08:00
parent beda44b6bf
commit 096bd56579
2 changed files with 16 additions and 8 deletions

9
.env
View File

@ -1,3 +1,6 @@
SERVER_HOST=gitlab.zziyu.cn
EXTERN_URL=https://gitlab.zziyu.cn
GITLAB_HOME=/root/gitlab/data
GITLAB_HOSTNAME=gitlab.zziyu.cn
GITLAB_ROOT_PASSWORD=123456
POSTGRES_PASSWORD=123456
POSTGRES_USER=123456
GITLAB_HOME=/root/gitlab/data
# EXTERN_URL=https://gitlab.zziyu.cn

View File

@ -1,15 +1,20 @@
version: '3.6'
services:
gitlab:
image: gitlab/gitlab-ce:latest
container_name: gitlab
image: alpinelinux/gitlab:17.3
container_name: minigitlab
restart: always
hostname: '$SERVER_HOST'
environment:
GITLAB_OMNIBUS_CONFIG: |
GITLAB_HOSTNAME:'$GITLAB_HOSTNAME'
GITLAB_ROOT_PASSWORD:'$GITLAB_ROOT_PASSWORD'
POSTGRES_PASSWORD:'$POSTGRES_PASSWORD'
POSTGRES_USER:'$POSTGRES_USER'
TZ :'Asia/Shanghai'
# GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
external_url '$EXTERN_URL'
TZ : "Asia/Shanghai"
# external_url '$EXTERN_URL'
ports:
- '3080:80'
- '3443:443'