mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 22:33:11 +00:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user