diff --git a/.env b/.env index cf3fe31..5bc4792 100644 --- a/.env +++ b/.env @@ -1,4 +1,5 @@ hostname=gitlab.zziyu.cn external_url=https://gitlab.zziyu.cn email=Zengtudor@outlook.com -gitlab_root=/root/gitlab \ No newline at end of file +gitlab_root=/root/gitlab +mem_limit=2048m \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index db71422..79fe065 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,6 +4,7 @@ services: image: 'twang2218/gitlab-ce-zh:11.1.4' restart: unless-stopped hostname: $hostname + mem_limit: $mem_limit environment: TZ: 'Asia/Shanghai' GITLAB_OMNIBUS_CONFIG: |