Commands are current as of writing. Before installing, check the official site docs.n8n.io — the image and parameters change from time to time.
What you’ll need
- A Lumi server (Ubuntu 22.04 by default). Take the IP, the
rootlogin, and the password from the server card in @lumivps_bot. - An SSH connection as
root: Connecting to the server. - Docker installed: Docker.
Installation
Run n8n
-d is background mode, --restart unless-stopped brings the container back up automatically when the server reboots, -p 5678:5678 is the panel port, -v n8n_data:/home/node/.n8n is the workflow storage, GENERIC_TIMEZONE and TZ are the time zone (set your own), and the rest of the variables enable the secure settings-file mode and the task runner.Open the port in the firewall
Quick test (without persisting data)
Quick test (without persisting data)
Want to just try n8n quickly and tear it down right after? Use the The
--rm variant:--rm flag removes the container when it stops. For ongoing use, go with the main command above.For production
Don’t expose the panel on a bare IP with a port. Set up a domain, put a reverse proxy (Nginx) in front, and add HTTPS — you’ll get an address likehttps://n8n.yourdomain: secure and clean. That’s also where you set the time zone and basic auth through environment variables.
Web server
Set up Nginx as a reverse proxy in front of n8n.
SSL certificate
Add HTTPS to your n8n domain.
Where to next
Docker
How Docker works and the core commands.
Web server
Set up Nginx for a production n8n deployment.