From 6ed21a40cf96efe9bc615ebdfd8ef0a38b0a1dc6 Mon Sep 17 00:00:00 2001 From: l <426742@gmail.com> Date: Mon, 24 Jun 2024 12:41:00 +0500 Subject: [PATCH] add gitlab.yml --- dev.sh | 2 +- gitlab.yml | 19 +++++++++++++++++++ traefik.yml | 7 ++++++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 gitlab.yml diff --git a/dev.sh b/dev.sh index 766a187..a940e45 100644 --- a/dev.sh +++ b/dev.sh @@ -1 +1 @@ -docker compose --env-file .env.dev -f docker-compose.yml up \ No newline at end of file +docker compose --env-file .env.dev -f traefik.yml up \ No newline at end of file diff --git a/gitlab.yml b/gitlab.yml new file mode 100644 index 0000000..6acd17d --- /dev/null +++ b/gitlab.yml @@ -0,0 +1,19 @@ +services: + gitlab: + image: gitlab/gitlab-ce:17.1.0-ce.0 + container_name: gitlab + restart: always + hostname: 'gitlab.corp.hm' + environment: + GITLAB_OMNIBUS_CONFIG: | + # Add any other gitlab.rb configuration here, each on its own line + external_url 'https://gitlab.corp.hm' + ports: + - '80:80' + - '443:443' + - '22:22' + volumes: + - '$GITLAB_HOME/config:/etc/gitlab' + - '$GITLAB_HOME/logs:/var/log/gitlab' + - '$GITLAB_HOME/data:/var/opt/gitlab' + shm_size: '256m' \ No newline at end of file diff --git a/traefik.yml b/traefik.yml index 3468c05..60e47f9 100644 --- a/traefik.yml +++ b/traefik.yml @@ -20,7 +20,7 @@ services: - '--log=true' #- "--log.level=INFO" - "--providers.docker.exposedByDefault=false" - - "--providers.docker.network=server_proxynet" + - "--providers.docker.network=proxynet" #Entrypoints: - "--entrypoints.http.address=:80" - "--entrypoints.https.address=:443" @@ -55,3 +55,8 @@ services: driver: "json-file" options: max-size: "1m" + +networks: + proxynet: + driver: bridge + external: false \ No newline at end of file