From f85c664b4cb7fcf1ced7d00285430b26585ad68b Mon Sep 17 00:00:00 2001 From: fghwett <1058178245@qq.com> Date: Fri, 7 Oct 2022 21:38:33 +0800 Subject: [PATCH] gitlab --- Docker/gitlab/docker-compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Docker/gitlab/docker-compose.yml diff --git a/Docker/gitlab/docker-compose.yml b/Docker/gitlab/docker-compose.yml new file mode 100644 index 0000000..5893176 --- /dev/null +++ b/Docker/gitlab/docker-compose.yml @@ -0,0 +1,28 @@ +version: '3.6' +services: + web: + container_name: gitlab + image: 'gitlab/gitlab-ee:latest' + restart: unless-stopped + hostname: 'gitlab.example.com' + environment: + GITLAB_OMNIBUS_CONFIG: | + external_url 'https://gitlab.example.com' + # Add any other gitlab.rb configuration here, each on its own line + # ports: + # - '80:80' + # - '443:443' + # - '22:22' + volumes: + - './data/config:/etc/gitlab' + - './data/logs:/var/log/gitlab' + - './data/data:/var/opt/gitlab' + shm_size: '256m' + networks: + nginx: + aliases: + - gitlab + +networks: + nginx: + external: true \ No newline at end of file