Just wondering how to install and enable an npm module for an instance setup using the docker-compose example?
I can see that there is an environment variable to enable the use of modules, but actually getting them installed is the missing link
Im assuming I need to create a docker file, with npm install commands added, and then turn that into an image to use in my docker-compose? Im assuming similar steps to add python?
Yes I should have just tested before asking - But it may be helpful to others
Had to create a docker file, base it on the n8n image, and add the steps I wanted such as
RUN apk add --update python3 py3-pip
RUN npm install -g require
RUN npm install -g humanparser
and then create an image using
docker build n8n-custom .
and then usee n8n-custom in my docker-compose
and add the modules into the NODE_FUNCTION_ALLOW_EXTERNAL= env variable in docker compose
Glad to hear you already figured it out, thanks so much for sharing your solution and welcome to the community @dakota2gen