From 0e6b4ba2ee52c1634808d81f2f4326e77436b085 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Sat, 6 Jun 2026 23:26:39 +0200 Subject: [PATCH] fix(cache): inline config via compose configs to avoid bind-mount path issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Coolify's docker compose workdir doesn't always resolve ./config.yaml, so Docker silently created the mount target as a directory, breaking runner startup with 'is a directory'. Embed the config in the compose file via the configs: top-level key — no external file dependency. --- config.yaml | 8 -------- docker-compose.yml | 16 +++++++++++++++- 2 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 config.yaml diff --git a/config.yaml b/config.yaml deleted file mode 100644 index e105ee1..0000000 --- a/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -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 2538130..d96623e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,7 +12,21 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock - runner_data:/data - - ./config.yaml:/config/config.yaml:ro + configs: + - source: runner_config + target: /config/config.yaml + +configs: + runner_config: + content: | + cache: + enabled: true + dir: "/data/cache" + host: "host.docker.internal" + port: 42951 + + container: + options: "--add-host=host.docker.internal:host-gateway" volumes: runner_data: