From 4e427ea46245c11008b80eb16be64f168bf285f2 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 8 Jan 2021 23:13:21 +0200 Subject: [PATCH] Seperate Docker network. Seperate the runner and jobs to a network just for themselves. --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7a2ea4e..6046200 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,6 +7,7 @@ services: environment: CI_SERVER_URL: "${CI_SERVER_URL:-https://git.shore.co.il}" DOCKER_IMAGE: docker:19.03 + DOCKER_NETWORK_MODE: &network gitlab-runner REGISTRATION_TOKEN: "${REGISTRATION_TOKEN}" RUNNER_NAME: "${RUNNER_NAME}" REGISTER_RUN_UNTAGGED: "${RUN_UNTAGGED:-true}" @@ -29,4 +30,4 @@ volumes: networks: default: - name: shore + name: *network -- GitLab