update
This commit is contained in:
parent
c5b21446f0
commit
fe78ebbe9e
10
.env
10
.env
@ -1,6 +1,4 @@
|
|||||||
GITLAB_HOSTNAME=gitlab.zziyu.cn
|
hostname=gitlab.zziyu.cn
|
||||||
GITLAB_ROOT_PASSWORD=123456
|
external_url=https://gitlab.zziyu.cn
|
||||||
POSTGRES_PASSWORD=123456
|
email=Zengtudor@outlook.com
|
||||||
POSTGRES_USER=123456
|
gitlab_root=/root/gitlab
|
||||||
GITLAB_HOME=/root/gitlab/data
|
|
||||||
# EXTERN_URL=https://gitlab.zziyu.cn
|
|
@ -1,27 +1,30 @@
|
|||||||
version: '3.6'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
gitlab:
|
gitlab:
|
||||||
image: alpinelinux/gitlab:17.3
|
image: 'twang2218/gitlab-ce-zh:11.1.4'
|
||||||
container_name: minigitlab
|
restart: unless-stopped
|
||||||
restart: always
|
hostname: $hostname
|
||||||
hostname: '$SERVER_HOST'
|
|
||||||
environment:
|
environment:
|
||||||
- GITLAB_HOSTNAME=$GITLAB_HOSTNAME
|
TZ: 'Asia/Shanghai'
|
||||||
- GITLAB_ROOT_PASSWORD=$GITLAB_ROOT_PASSWORD
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
external_url $external_url
|
||||||
- POSTGRES_USER=$POSTGRES_USER
|
gitlab_rails['time_zone'] = 'Asia/Shanghai'
|
||||||
- TZ=Asia/Shanghai
|
# 需要配置到 gitlab.rb 中的配置可以在这里配置,每个配置一行,注意缩进。
|
||||||
# GITLAB_OMNIBUS_CONFIG: |
|
# 比如下面的电子邮件的配置:
|
||||||
# Add any other gitlab.rb configuration here, each on its own line
|
# gitlab_rails['smtp_enable'] = true
|
||||||
# external_url '$EXTERN_URL'
|
# gitlab_rails['smtp_address'] = "smtp.exmail.qq.com"
|
||||||
|
# gitlab_rails['smtp_port'] = 465
|
||||||
|
# gitlab_rails['smtp_user_name'] = "xxxx@xx.com"
|
||||||
|
# gitlab_rails['smtp_password'] = "password"
|
||||||
|
# gitlab_rails['smtp_authentication'] = "login"
|
||||||
|
# gitlab_rails['smtp_enable_starttls_auto'] = true
|
||||||
|
# gitlab_rails['smtp_tls'] = true
|
||||||
|
gitlab_rails['gitlab_email_from'] = $email
|
||||||
ports:
|
ports:
|
||||||
- '3080:80'
|
- '3080:80'
|
||||||
- '3443:443'
|
- '3443:443'
|
||||||
- '3022:22'
|
- '3022:22'
|
||||||
volumes:
|
volumes:
|
||||||
- '$GITLAB_HOME/config:/etc/gitlab'
|
- $gitlab_root/config:/etc/gitlab
|
||||||
- '$GITLAB_HOME/logs:/var/log/gitlab'
|
- $gitlab_root/data:/var/opt/gitlab
|
||||||
- '$GITLAB_HOME/data:/var/opt/gitlab'
|
- $gitlab_root/logs:/var/log/gitlab
|
||||||
shm_size: '256m'
|
|
||||||
mem_limit: '4096m'
|
|
||||||
|
Loading…
Reference in New Issue
Block a user