Skip to content
zefıly

How to host n8n on your own server

n8n runs the workflows that connect your apps. Zefily installs it as a container with its own encryption key and data folder, behind HTTPS on your domain. The key protects every credential you save in n8n, so it must never change.

Before you start

  • A server connected to Zefily with the web stack installed.
  • A domain whose DNS points to the server.
  • A backup plan for the site, since the data and the encryption key must not be lost.

Steps

  1. 1. Install from One-click apps

    Open the server, choose Sites, pick n8n under One-click apps, enter the domain and keep HTTPS on. Then click Install.

  2. 2. Keep the encryption key

    Zefily creates N8N_ENCRYPTION_KEY in the site environment at install. It protects the credentials you save in n8n. Never change it: with a different key those credentials cannot be read. Updates and redeploys keep it.

  3. 3. Read the temporary login

    n8n opens a setup screen on the first visit, behind the panel temporary access. Click Show admin login on the site to get the temporary user name and password.

  4. 4. Create the owner account

    On the setup screen, create your owner account. The panel cannot create it for you, so do this before you share the address with anyone.

  5. 5. Create your first workflow

    Create a workflow and save the credentials for the apps it uses. Test it with a manual run before you turn on a schedule.

  6. 6. Update when Zefily shows an update

    When the catalog moves n8n to a newer pinned image, the site Deploy page shows Update available. Update asks first, stops the site, copies its data to ~/backups when it fits and starts the new version. The new version may migrate data, so make sure you have a backup.

  7. 7. Store a copy of the environment

    Keep a copy of the site environment somewhere safe, because it holds the encryption key. Without the key, the saved credentials are lost after a restore.

Verify it works

Open the domain: the n8n sign-in screen loads over HTTPS. After you sign in, create a workflow with a manual trigger and run it; it finishes without an error.

Troubleshooting

Saved credentials show errors
The encryption key was changed or lost. Restore the original N8N_ENCRYPTION_KEY from your copy of the site environment, then restart the site.
I am not ready for the new version
The update is optional. Redeploy app runs the release again without changing the version.
The setup screen does not appear
The setup screen only shows until the owner account exists. If an owner exists, sign in with that account.

Questions

Where is the n8n data kept?

In the site data folder, which the panel maps to the n8n user, so n8n can write to it.

Which image does the catalog install?

A pinned image from the catalog. A newer pinned version is offered as an update; the catalog does not follow the latest tag.

Can I run my own n8n version?

Yes. Run it from your own repository with a Compose file as a container site, where you choose each image tag.

Read next

Start on a server you own

Create your account, connect a server and follow the guide. The server stays yours: you pay your provider.

Start free

Black Friday & Cyber Monday

Before you go: lifetime plans are on sale

Pay once for a lifetime plan, or get 30% off the first year of any yearly plan.

Only 100 lifetime plans per plan. When they are gone, they are gone.

See the campaign

Amazing November

See the campaign →