mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 09:36:44 +00:00
n8n - Task runners (n8nio/runners) - (PREVIEW)
n8nio/runners image includes JavaScript runner,
Python runner and
Task runner launcher that connects to a Task Broker
running on the main n8n instance when running in external mode. This image is to be launched as a sidecar
container to the main n8n container.
Task runners are used to execute user-provided code in the Code Node, isolated from the n8n instance.
Testing locally
- Make a production build of n8n
pnpm run build:n8n
- Build the task runners image
docker buildx build --no-cache \
-f docker/images/runners/Dockerfile \
-t n8nio/runners \
.
- Start n8n on your host machine with Task Broker enabled
N8N_RUNNERS_ENABLED=true \
N8N_RUNNERS_MODE=external \
N8N_RUNNERS_AUTH_TOKEN=test \
N8N_LOG_LEVEL=debug \
pnpm start
- Start the task runner container
docker run --rm -it \
-e N8N_RUNNERS_AUTH_TOKEN=test \
-e N8N_RUNNERS_LAUNCHER_LOG_LEVEL=debug \
-e N8N_RUNNERS_TASK_BROKER_URI=http://host.docker.internal:5679 \
-p 5680:5680 \
n8nio/runners