n8n's Community Edition is genuinely free. Not "free tier with an execution cap" free. Unlimited workflows, unlimited executions, no license key required. The catch is that you run it yourself, which means you are responsible for the server, the backups, and the updates.
This walkthrough gets you from a blank server to a running n8n instance you can access in a browser. It takes about fifteen minutes if you already have a server, and a bit longer if you are starting from scratch.
What You Actually Need
The bare minimum is 1 vCPU and 2GB of RAM, but that is for testing. For anything you intend to keep running, 2 vCPUs and 4GB of RAM is the realistic floor. n8n does not restrict how much data a workflow node can fetch or process, which means a heavy workflow can exhaust memory quickly if the server is underpowered.
You also need a Linux server (Ubuntu or Debian are the safest defaults), Docker installed, and a way to access the server over SSH. A cheap VPS from any provider works fine. The software costs nothing; the server costs a few dollars a month.
The One-Line Install (Fastest Path)
n8n provides an installation script that handles Docker setup and configuration in a single command. On a fresh Linux server with curl available, run:
curl -fsSL https://get.n8n.io | sh
This downloads and runs the setup script, which installs n8n locally with sensible defaults. When it finishes, n8n should be running on port 5678. Open a browser and go to http://your-server-ip:5678 to confirm it loads.
The one-line method is the right choice if you want to see n8n working before committing to a more structured setup. It is not the right choice for production, because it gives you less control over where data is stored and how the container is configured.
The Docker Compose Setup (Better for Keeping)
If you want a setup you can maintain, Docker Compose gives you a file you can read, edit, and back up. It also makes upgrades a deliberate action rather than an accident.
First, create a directory for the project and a data folder inside it:
mkdir ~/n8n
cd ~/n8n
mkdir data
Then create a file named docker-compose.yml with this content:
services:
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: always
ports:
- "5678:5678"
environment:
- GENERIC_TIMEZONE=UTC
- TZ=UTC
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
volumes:
- ./data:/home/node/.n8n
This configuration mounts a local data directory into the container, which means your workflows and credentials survive container restarts and upgrades. Without that volume, everything you build disappears the next time the container is recreated.
Start it with:
docker compose up -d
Then check that it is running:
docker compose ps
If the container shows as running, open http://your-server-ip:5678 in a browser. You should see the n8n setup screen.
The One Thing You Must Back Up
n8n stores your credentials in the database, but it encrypts them using a key stored in a file inside the data volume. That file is generated automatically on first startup, and if you lose it, every stored credential becomes unreadable.
The key lives at ./data/config in the Compose setup above. Copy it somewhere safe — a password manager entry, an encrypted note, anything that is not the same server. Backing up the database without the encryption key is a backup that will fail exactly when you need it.
Adding a Domain and HTTPS
Accessing n8n over a raw IP address on port 5678 works for testing, but it is not something you want exposed to the internet long-term. The standard pattern is to put a reverse proxy in front of it — Caddy is the simplest option because it handles HTTPS certificates automatically.
The short version is: point a domain at your server, add a Caddy service to the Compose file with your domain name, and Caddy will provision a certificate and forward traffic to n8n on port 5678.
If you are not ready for a domain yet, at minimum restrict access to port 5678 using your server's firewall, and do not expose it to the public internet until you have HTTPS configured.
What the Free Edition Does and Does Not Include
The Community Edition includes almost the full feature set. What it leaves out is the collaboration and governance layer: SSO, Git-based version control, environments, shared workflows and credentials, and external secret stores.
For a solo freelancer or a small team, none of those gaps matter on day one. For a company that needs multiple people sharing credentials and auditing changes, they eventually will. The Community Edition is free forever, but it is a single-user-oriented edition in practice.
| Feature | Community (Free) | Paid Tiers |
|---|---|---|
| Workflows | Unlimited | Unlimited |
| Executions | Unlimited | Unlimited (self-hosted) |
| SSO / SAML | No | Yes |
| Git version control | No | Yes |
| Shared credentials | No | Yes |
| External secrets | No | Yes |
Keeping It Running
Once n8n is running, the maintenance burden is small but real. Three habits cover most of it.
Pin your image version. Using :latest in the Compose file means every restart could pull a new version with database migrations you did not plan for. Replace docker.n8n.io/n8nio/n8n with a specific version tag, and upgrade deliberately.
Watch memory. If the container restarts unexpectedly or workflows fail with "JavaScript heap out of memory," the server is under-provisioned or a workflow is pulling too much data at once. The fix is either more RAM or a lighter workflow.
Back up the data folder and the encryption key together. A nightly copy of ./data covers the database and the key in one step, as long as you actually copy the whole folder and not just the database file.
Frequently Asked Questions
Is the Community Edition really unlimited?
Yes. Self-hosted Community Edition has no execution cap and no workflow cap. You pay for the server and your own time, not for the software.
Can I run n8n on a Raspberry Pi?
You can, and the one-line install supports it, but the 4GB RAM recommendation applies. A Pi with less memory will struggle with anything beyond light workflows.
What happens if I lose the encryption key?
Stored credentials become unrecoverable. n8n will still start, but any workflow relying on a saved credential will fail authentication. There is no recovery path other than re-entering the credentials manually.
Do I need PostgreSQL?
No. n8n defaults to SQLite, which is fine for a single instance and light use. For production workloads or multiple users, switch to PostgreSQL.
How do I update n8n?
Change the image tag in your Compose file to the new version, then run docker compose up -d. Back up the data folder first, and read the release notes for any breaking changes before jumping versions.
The setup is the easy part. The habit that keeps it running is the boring one: back up the data folder and the encryption key, pin your version, and upgrade on purpose instead of by accident.
