update
This commit is contained in:
parent
d2993fe08b
commit
1eec954872
3
.env
Normal file
3
.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
SERVER_HOST=gitlab.zziyu.cn
|
||||||
|
EXTERN_URL=https://gitlab.zziyu.cn
|
||||||
|
GITLAB_HOME=/root/gitlab/data
|
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
version: '3.6'
|
||||||
|
services:
|
||||||
|
gitlab:
|
||||||
|
image: gitlab/gitlab-ee:latest
|
||||||
|
container_name: gitlab
|
||||||
|
restart: always
|
||||||
|
hostname: '$SERVER_HOST'
|
||||||
|
environment:
|
||||||
|
GITLAB_OMNIBUS_CONFIG: |
|
||||||
|
# Add any other gitlab.rb configuration here, each on its own line
|
||||||
|
external_url '$EXTERN_URL'
|
||||||
|
TZ : "Asia/Shanghai"
|
||||||
|
ports:
|
||||||
|
- '3080:80'
|
||||||
|
- '3443:443'
|
||||||
|
- '3022:22'
|
||||||
|
volumes:
|
||||||
|
- '$GITLAB_HOME/config:/etc/gitlab'
|
||||||
|
- '$GITLAB_HOME/logs:/var/log/gitlab'
|
||||||
|
- '$GITLAB_HOME/data:/var/opt/gitlab'
|
||||||
|
shm_size: '256m'
|
||||||
|
mem_limit: '4096m'
|
Loading…
Reference in New Issue
Block a user