Anpassungen für den Runner gemacht, Speicher angepasst

This commit is contained in:
2026-02-09 14:19:30 +01:00
parent 810f071642
commit 5d8f92b362
+24 -10
View File
@@ -3,30 +3,30 @@ services:
image: n8nio/n8n:latest image: n8nio/n8n:latest
restart: unless-stopped restart: unless-stopped
container_name: n8nv2 container_name: n8nv2
labels:
- wud.watch=true
deploy: deploy:
resources: resources:
limits: limits:
memory: 1G memory: 2G
ports: ports:
- 9789:5678 - 9789:5678
volumes: volumes:
- ./n8n-data:/home/node/.n8n - ./n8n-data:/home/node/.n8n
- /media/Daten/:/mnt/heimserver-daten # - /media/Daten/:/mnt/heimserver-daten
- ./upload/:/mnt/upload - ./upload/:/mnt/upload
# - ./files/WertPlattensammlung.csv:/mnt/files # - ./files/WertPlattensammlung.csv:/mnt/files
environment: environment:
- N8N_RUNNERS_MODE=external
- N8N_RUNNERS_ENABLED=true - N8N_RUNNERS_ENABLED=true
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0
- N8N_RUNNERS_BROKER_PORT=5679
- N8N_RUNNERS_AUTH_TOKEN=^0hXW4sgSU7aG6!LFkGZ
- N8N_NATIVE_PYTHON_RUNNER=true
- N8N_PYTHON_ENABLED=true - N8N_PYTHON_ENABLED=true
# - N8N_RUNNERS_MODE=external - OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true
- NODES_EXCLUDE=[] - NODES_EXCLUDE=[]
- N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files;/mnt/upload - N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files;/mnt/upload
- N8N_DIAGNOSTICS_ENABLED=false - N8N_DIAGNOSTICS_ENABLED=false
- N8N_VERSION_NOTIFICATIONS_ENABLED=true - N8N_VERSION_NOTIFICATIONS_ENABLED=true
- N8N_RUNNERS_BROKER_LISTEN_ADDRESS=0.0.0.0 # Broker auf allen Interfaces
- N8N_RUNNERS_AUTH_TOKEN=IBhwCI2zP791vfzY9yHWWRLDsou4h4KB
- N8N_NATIVE_PYTHON_RUNNER=true
- N8N_BASIC_AUTH_ACTIVE=true - N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin - N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD="OvTCSDZqpA#NfitX^dP1" - N8N_BASIC_AUTH_PASSWORD="OvTCSDZqpA#NfitX^dP1"
@@ -55,10 +55,11 @@ services:
- N8N_LOG_OUTPUT=console - N8N_LOG_OUTPUT=console
networks: networks:
- n8n-net - n8n-net
# depends_on:
# - postgres
postgres: postgres:
image: postgres:15-alpine image: postgres:15-alpine
restart: unless-stopped
labels:
- wud.watch=true
deploy: deploy:
resources: resources:
limits: limits:
@@ -73,6 +74,19 @@ services:
- ./postgres-data:/var/lib/postgresql/data - ./postgres-data:/var/lib/postgresql/data
networks: networks:
- n8n-net - n8n-net
task-runners:
image: n8nio/runners:latest
restart: unless-stopped
container_name: n8n-runners
environment:
- N8N_RUNNERS_TASK_BROKER_URI=http://n8n:5679
- N8N_RUNNERS_AUTH_TOKEN=^0hXW4sgSU7aG6!LFkGZ
- N8N_RUNNERS_MAX_CONCURRENCY=10
- N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT=15
depends_on:
- n8n
networks:
- n8n-net
networks: networks:
n8n-net: n8n-net:
driver: bridge driver: bridge