services: n8n: image: n8nio/n8n:latest restart: unless-stopped container_name: n8nv2 deploy: resources: limits: memory: 2G ports: - 9789:5678 volumes: - ./n8n-data:/home/node/.n8n # - /media/Daten/:/mnt/heimserver-daten - ./upload/:/mnt/upload # - ./files/WertPlattensammlung.csv:/mnt/files environment: - N8N_RUNNERS_MODE=external - 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 - OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true - NODES_EXCLUDE=[] - N8N_RESTRICT_FILE_ACCESS_TO=/home/node/.n8n-files;/mnt/upload - N8N_DIAGNOSTICS_ENABLED=false - N8N_VERSION_NOTIFICATIONS_ENABLED=true - N8N_BASIC_AUTH_ACTIVE=true - N8N_BASIC_AUTH_USER=admin - N8N_BASIC_AUTH_PASSWORD="OvTCSDZqpA#NfitX^dP1" - GENERIC_TIMEZONE=Europe/Berlin - N8N_SECURE_COOKIE=false - N8N_HOST=n8n-app.hanold.online - N8N_PROTOCOL=https # - N8N_PORT=" " #GIFTIG: Killt den Zugriff auf n8n von außen - WEBHOOK_URL=https://n8n-app.hanold.online - N8N_PROXY_HOPS=1 - DB_TYPE=postgresdb - DB_POSTGRESDB_HOST=postgres # Service-Name statt IP - DB_POSTGRESDB_PORT=5432 - DB_POSTGRESDB_DATABASE=n8n - DB_POSTGRESDB_USER=n8n - DB_POSTGRESDB_PASSWORD=dbpass # Timeouts anpassen: - EXECUTIONS_TIMEOUT=36000 - N8N_HTTP_REQUEST_TIMEOUT=0 - N8N_HTTP_HEADERS_TIMEOUT=36000000 - N8N_HTTP_KEEPALIVE_TIMEOUT=36000000 - FETCH_HEADERS_TIMEOUT=36000000 - FETCH_BODY_TIMEOUT=360000000 - FETCH_CONNECT_TIMEOUT=6000000 - N8N_LOG_LEVEL=info - N8N_LOG_OUTPUT=console networks: - n8n-net postgres: image: postgres:15-alpine restart: unless-stopped labels: - wud.watch=true deploy: resources: limits: memory: 512M environment: - POSTGRES_DB=n8n - POSTGRES_USER=n8n - POSTGRES_PASSWORD=dbpass ports: - 5432:5432 volumes: - ./postgres-data:/var/lib/postgresql/data networks: - 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: n8n-net: driver: bridge