-
Hi everyone, I've been wrestling with getting a Node.js service to run alongside my existing PHP (ExpressionEngine) DDEV project while using OrbStack as my Docker provider. I've encountered a persistent network conflict error that's preventing the Node.js container from starting correctly, and I'm hoping someone in the community might have some insights. My Setup:Operating System: macOS Sequoia 15.4.1 Goal:To run a separate Node.js server within the same DDEV project, accessible via a specific path (/api) using Traefik. What I've Done So Far: Created .ddev/docker-compose.override.yaml: YAML
My Node.js server folder and server.js file are confirmed at the root of my project. Encountered Tried ddev ssh -s nodejs: This consistently failed with the error: Simplified command for testing: Changed the command to Checked DDEV logs: The logs consistently showed the "Cannot find module" error when the original command was used. Tried a minimal testnode service: In a fresh DDEV project with OrbStack, a minimal docker-compose.override.yaml like this also failed ddev ssh: YAML
Error: Tried nginx:alpine: A minimal service using nginx:alpine worked and was accessible in the browser, indicating that DDEV and OrbStack can run basic custom services. However, switching back to node:20 leads to the original issues. Encountered OrbStack network conflict: The OrbStack debug output shows: create container: [Docker] Container cannot be created with multiple network endpoints: ddev-jtcc-fastspot_default, ddev_default. Explicitly defined networks in docker-compose.override.yaml: Added the networks section as shown in the first step. This did not resolve the OrbStack network conflict. Tried removing ddev_default network: docker network rm ddev_default failed due to active endpoints. Stopped and removed all DDEV containers and networks: Used docker stop, docker rm, and docker network rm to clean up. The OrbStack network conflict still persists after ddev restart. Current Status:The OrbStack debug output consistently shows the network conflict, preventing the nodejs container from being created correctly in a way that DDEV recognizes for ddev ssh. The "Cannot find module" error is likely a secondary issue that would need to be addressed once the container is running properly. Seeking Help:Has anyone encountered this error with DDEV and OrbStack? This was also the case when trying on Docker desktop. Are there any specific OrbStack configurations or DDEV settings that might be causing this conflict? Any insights or suggestions on how to resolve this would be greatly appreciated! Thanks in advance for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Would it be possible to use the standard DDEV approach to this, with web_extra_daemons? https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#using-nodejs-with-ddev |
Beta Was this translation helpful? Give feedback.
Would it be possible to use the standard DDEV approach to this, with web_extra_daemons? https://ddev.readthedocs.io/en/stable/users/extend/customization-extendibility/#using-nodejs-with-ddev