From a6b403e3506caa921e073fe06ed93033cee3c581 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 6 Jun 2026 23:25:06 +0200 Subject: [PATCH] fix(cache): expose embedded cache to job containers via host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit act_runner's defaults autodetect its own container IP as the cache host, which per-job networks can't route to — every actions/cache restore and save hit a 5-minute ETIMEDOUT. Add a config.yaml that pins the cache port and advertises host.docker.internal, publish that port on the host, and inject --add-host=host-gateway into job containers so the hostname resolves inside isolated networks. --- config.yaml | 8 ++++++++ docker-compose.yml | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 config.yaml diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..e105ee1 --- /dev/null +++ b/config.yaml @@ -0,0 +1,8 @@ +cache: + enabled: true + dir: "/data/cache" + host: "host.docker.internal" + port: 42951 + +container: + options: "--add-host=host.docker.internal:host-gateway" diff --git a/docker-compose.yml b/docker-compose.yml index 7ef37d4..2538130 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,9 +6,13 @@ services: GITEA_INSTANCE_URL: "https://git.apoena.dev" GITEA_RUNNER_REGISTRATION_TOKEN: "${GITEA_RUNNER_REGISTRATION_TOKEN}" GITEA_RUNNER_NAME: "coolify-runner" + CONFIG_FILE: "/config/config.yaml" + ports: + - "42951:42951" volumes: - /var/run/docker.sock:/var/run/docker.sock - runner_data:/data + - ./config.yaml:/config/config.yaml:ro volumes: runner_data: