From 39c16f2bc557c72be99c7deed4d1397844881c7b Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Wed, 14 May 2025 14:11:41 -0600 Subject: [PATCH] Update n8n service configuration in docker-compose.yml - Removed the npm install command for cheerio from the n8n service to streamline the startup process. - Added environment variables NODE_FUNCTION_ALLOW_BUILTIN and NODE_FUNCTION_ALLOW_EXTERNAL to allow specific built-in and external modules, enhancing the flexibility of the n8n service. --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9642060..afd56d1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,6 @@ volumes: x-n8n: &service-n8n image: n8nio/n8n:latest - command: sh -c "npm install cheerio && n8n" environment: &service-n8n-env DB_TYPE: postgresdb DB_POSTGRESDB_HOST: postgres @@ -36,6 +35,8 @@ x-n8n: &service-n8n QUEUE_BULL_REDIS_PORT: ${REDIS_PORT:-6379} N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: true N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE: true + NODE_FUNCTION_ALLOW_BUILTIN: "*" + NODE_FUNCTION_ALLOW_EXTERNAL: cheerio,axios,moment,lodash services: flowise: