From 1eec9548725e7c2fc15f5639e0ed2206b6738032 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Wed, 16 Oct 2024 16:23:18 +0800 Subject: [PATCH] update --- .env | 3 +++ docker-compose.yml | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .env create mode 100644 docker-compose.yml diff --git a/.env b/.env new file mode 100644 index 0000000..76b4d6f --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +SERVER_HOST=gitlab.zziyu.cn +EXTERN_URL=https://gitlab.zziyu.cn +GITLAB_HOME=/root/gitlab/data \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8353aec --- /dev/null +++ b/docker-compose.yml @@ -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'