How to Use my private Custom n8n Node in Docker?

Hi everyone,

I’m trying to use a custom n8n node in my workflow. Locally, it works perfectly when I link the custom node using pnpm link.

This works fine on my local environment.
But when i copy credentials and nodes folder to home/node/.n8n/custom/ in docker container. It didn’t work. How can i fix that? My custom node use pulsar-client package with authen.

Please give me a full dockerfile/docker-compose.yaml to use it on my server. Can I push it to Github and pull in n8n instance?

Information on your n8n setup

  • n8n version: 1.85.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

This tutorial is more geared toward development, but it could probably help you figure out what you would need for a regular docker setup too.