From 7240b8bf8c4733c518afcff4d14de286f0311fd1 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Tue, 1 Nov 2022 00:32:28 -0700 Subject: [PATCH] #36 for Gitlab --- homelab/server/config/gitlab/docker-compose.yml | 12 ++++++++---- homelab/server/config/gitlab/{.env => gitlab.env} | 1 + homelab/server/config/gitlab/project.env | 0 homelab/server/config/gitlab/runner.env | 1 + 4 files changed, 10 insertions(+), 4 deletions(-) rename homelab/server/config/gitlab/{.env => gitlab.env} (88%) delete mode 100644 homelab/server/config/gitlab/project.env create mode 100644 homelab/server/config/gitlab/runner.env diff --git a/homelab/server/config/gitlab/docker-compose.yml b/homelab/server/config/gitlab/docker-compose.yml index b26f62f4..2417f902 100644 --- a/homelab/server/config/gitlab/docker-compose.yml +++ b/homelab/server/config/gitlab/docker-compose.yml @@ -15,6 +15,8 @@ services: hostname: 'gitlab.jafner.net' networks: - web + env_file: + - gitlab.env environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://gitlab.jafner.net' @@ -103,8 +105,9 @@ services: loki-timeout: "2s" keep-file: "true" restart: "no" - environment: - - GODEBUG="x509ignoreCN=0" + env_file: + - gitlab.env + - runner.env volumes: - ${DOCKER_DATA}/runner-config:/etc/gitlab-runner - /var/run/docker.sock:/var/run/docker.sock @@ -123,8 +126,9 @@ services: loki-timeout: "2s" keep-file: "true" restart: "no" - environment: - - GODEBUG="x509ignoreCN=0" + env_file: + - gitlab.env + - runner.env volumes: - ${DOCKER_DATA}/runner-config:/etc/gitlab-runner - /var/run/docker.sock:/var/run/docker.sock diff --git a/homelab/server/config/gitlab/.env b/homelab/server/config/gitlab/gitlab.env similarity index 88% rename from homelab/server/config/gitlab/.env rename to homelab/server/config/gitlab/gitlab.env index 96d7bf54..63060ddd 100644 --- a/homelab/server/config/gitlab/.env +++ b/homelab/server/config/gitlab/gitlab.env @@ -1,2 +1,3 @@ +# Volumes DOCKER_DATA=/home/joey/data/gitlab DOCKER_CONFIG=/home/joey/docker_config/gitlab \ No newline at end of file diff --git a/homelab/server/config/gitlab/project.env b/homelab/server/config/gitlab/project.env deleted file mode 100644 index e69de29b..00000000 diff --git a/homelab/server/config/gitlab/runner.env b/homelab/server/config/gitlab/runner.env new file mode 100644 index 00000000..b3d0e431 --- /dev/null +++ b/homelab/server/config/gitlab/runner.env @@ -0,0 +1 @@ +GODEBUG="x509ignoreCN=0" \ No newline at end of file