User Tools

Site Tools


services:n8n

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:n8n [2026/02/06 23:46] – external edit 127.0.0.1services:n8n [2026/02/08 08:34] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 ====== n8n ====== ====== n8n ======
  
-Workflow automation platform.+Workflow Automation Platform.
  
-===== Access =====+===== Details =====
  
-Item ^ Value ^ +Key ^ Value ^
-| URL | [[https://n8n.home.miskam.xyz]] | +
-| Internal | [[https://n8n.srv.internal]] |+
 | Container | CT 111 | | Container | CT 111 |
-| IP | 10.100.161.111:5678 |+| IP | 10.100.161.111 
 +| Port | 5678 
 +| RAM | 1 GB | 
 +| URL | https://n8n.home.miskam.xyz |
  
-===== Installation =====+===== Features =====
  
-<code bash> +  * Visual Workflow Builder 
-# Container erstellen +  * 400+ Integrationen 
-pct create 111 local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst \ +  * Webhooks 
-  --hostname n8n \ +  * Scheduling (Cron) 
-  --memory 1024 --swap 512 \ +  * Self-hosted (keine Cloud-Limits)
-  --cores 2 \ +
-  --net0 name=eth0,bridge=vmbr0,tag=160,ip=10.100.161.111/23,gw=10.100.161.254 \ +
-  --features nesting=1 \ +
-  --unprivileged 1 \ +
-  --start 1+
  
-# Node.js installieren +===== Datenbank =====
-pct exec 111 -- bash -c ' +
-apt update && apt install -y curl +
-curl -fsSL https://deb.nodesource.com/setup_20.x | bash - +
-apt install -y nodejs +
-'+
  
-n8n installieren +  * **Host:** 10.100.161.110 (PostgreSQL) 
-pct exec 111 -- npm install -g n8n+  * **Database:** n8n 
 +  * **User:** n8n
  
-# PostgreSQL-Datenbank anlegen (auf CT 110) +===== Konfiguration =====
-pct exec 110 -- su - postgres -c "psql" << SQL +
-CREATE USER n8n WITH PASSWORD 'DB_PASSWORD'; +
-CREATE DATABASE n8n OWNER n8n; +
-SQL+
  
-# Systemd Service erstellen +<code> 
-pct exec 111 -- tee /etc/systemd/system/n8n.service << SERVICE +/opt/n8n/ 
-[Unit] +├── .n8n/              # Data directory 
-Description=n8n +└── .env               # Environment variables 
-After=network.target+</code>
  
-[Service] +Wichtige Env-Variablen: 
-Type=simple +<code> 
-User=root +N8N_HOST=0.0.0.0 
-Environment=N8N_HOST=0.0.0.0 +N8N_PORT=5678 
-Environment=N8N_PORT=5678 +N8N_PROTOCOL=https 
-Environment=N8N_PROTOCOL=https +WEBHOOK_URL=https://n8n.home.miskam.xyz/ 
-Environment=WEBHOOK_URL=https://n8n.home.miskam.xyz/ +DB_TYPE=postgresdb 
-Environment=DB_TYPE=postgresdb +DB_POSTGRESDB_HOST=10.100.161.110 
-Environment=DB_POSTGRESDB_HOST=10.100.161.110 +</code>
-Environment=DB_POSTGRESDB_PORT=5432 +
-Environment=DB_POSTGRESDB_DATABASE=n8n +
-Environment=DB_POSTGRESDB_USER=n8n +
-Environment=DB_POSTGRESDB_PASSWORD=DB_PASSWORD +
-Environment=N8N_ENCRYPTION_KEY=ENCRYPTION_KEY +
-ExecStart=/usr/bin/n8n +
-Restart=always+
  
-[Install] +===== Service =====
-WantedBy=multi-user.target +
-SERVICE+
  
-pct exec 111 -- systemctl daemon-reload +<code bash> 
-pct exec 111 -- systemctl enable --now n8n+systemctl status n8n 
 +journalctl -u n8n -f
 </code> </code>
  
-===== Configuration ===== +===== Ansible =====
- +
-^ Variable ^ Description ^ +
-| N8N_ENCRYPTION_KEY | Für Credential-Verschlüsselung (einmal setzen, nie ändern!) | +
-| WEBHOOK_URL | Externe URL für Webhooks | +
-| DB_* | PostgreSQL-Verbindung | +
- +
-Encryption Key in Vaultwarden gespeichert. +
- +
-===== Management =====+
  
 <code bash> <code bash>
-# Status +ansible-playbook site.yml --limit n8n
-pct exec 111 -- systemctl status n8n +
- +
-# Logs +
-pct exec 111 -- journalctl -u n8n -f +
- +
-# Restart +
-pct exec 111 -- systemctl restart n8n+
 </code> </code>
  
-===== Backup ===== +===== Links =====
- +
-Daten in PostgreSQL — siehe [[services:postgresql|PostgreSQL Backup]]. +
- +
-===== Related =====+
  
-  * [[services:postgresql|PostgreSQL]] - Database +  * [[https://docs.n8n.io/|n8n Documentation]] 
-  * [[services:traefik|Traefik]] - Reverse proxy +  * [[https://n8n.io/workflows|Workflow Templates]]
-  * [[infrastructure:containers|Containers]] - CT 111 details+
  
services/n8n.1770421583.txt.gz · Last modified: by 127.0.0.1