From a79be928b6aa9145e10dae993587d57d7f8f138f Mon Sep 17 00:00:00 2001 From: Lewis Nixon Date: Wed, 22 Jul 2026 20:19:18 +0100 Subject: [PATCH] Isolate node_modules in Dev Container with a named volume Bind-mounting the whole repo meant a host-installed node_modules (e.g. from macOS/Windows) shadowed the container's own install, causing native modules like Prisma's query engine to be built for the wrong platform. --- .devcontainer/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index da89f4775..2d849c129 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -5,9 +5,13 @@ services: dockerfile: .devcontainer/Dockerfile volumes: - ..:/workspaces/ghostfolio:cached + - node_modules:/workspaces/ghostfolio/node_modules command: sleep infinity depends_on: postgres: condition: service_healthy redis: condition: service_healthy + +volumes: + node_modules: