English
Get started

← All templates · Automation

Deploy n8n in one click

Workflow automation with a visual editor

A self-hosted alternative to Zapier and Make.

What is n8n?

n8n is a fair-code workflow automation tool, the Zapier alternative you can run on your own server. A workflow starts from a trigger, such as a schedule, a webhook or an event in another app, and passes data through nodes for the apps it connects. Where no node fits, the HTTP Request node calls any API and the Code node runs your own JavaScript. A workflow can also hold an AI agent with the model and tools you pick, and when a run fails you can re-run just the step that broke.

People self-host n8n so that the credentials and data their workflows handle stay in their own environment. The catch is that features for teams are paid: SSO, sharing workflows and credentials, Git version control and environments are not in the free Community Edition.

Hosting n8n on Pethost

  1. You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
  2. New project opens at n8n, and you click Create project.
  3. In a minute or two n8n is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
  4. It is a project like any other: you or your agent can change it, roll it back or restore it.

Questions about n8n

Is n8n open source?

No, n8n calls itself fair-code. Its Sustainable Use License lets you use it free inside your own business or for personal use, but offering n8n to others as a paid service needs a commercial agreement with n8n.

n8n vs Zapier: what is the difference?

Zapier runs only in its own cloud and counts every action a Zap performs as a task. n8n also runs on your own server, and its cloud counts a whole workflow run, however many steps, as one execution.

Can n8n run Python code?

Yes, but since n8n 2.0 the Python Code node needs task runners in external mode, a separate n8nio/runners container. This template runs n8n alone, so its Code node runs JavaScript.

How do I export and import n8n workflows?

Workflows are JSON. The Workflow menu in the editor has Download, Import from URL and Import from File, and copied nodes paste into another workflow. Exports include credential names and IDs, so check one before sharing it.

How do I change the timezone in n8n?

Set GENERIC_TIMEZONE, such as America/New_York, in the project's .env and redeploy: this template starts n8n in UTC. A single workflow can also take its own zone under Settings in its Workflow menu.

How much memory and disk does n8n need?

n8n is moderate: about 800 MB of memory, more for big workflows; old executions are pruned, so disk stays small. On Pethost the Starter plan is enough for it, with room for other apps beside it.

n8n Docker Compose file

The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written.

Containers: n8n (n8nio/n8n:2.43.4).

Volumes, in the nightly backup: data.

services:
  n8n:
    image: n8nio/n8n:2.43.4
    restart: unless-stopped
    environment:
      N8N_HOST: ${APP_HOST}
      N8N_PORT: "5678"
      N8N_PROTOCOL: https
      N8N_PROXY_HOPS: "1"
      N8N_EDITOR_BASE_URL: ${APP_URL}
      WEBHOOK_URL: ${APP_URL}/
      N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY}
      N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: "true"
      GENERIC_TIMEZONE: ${GENERIC_TIMEZONE:-UTC}
      TZ: ${GENERIC_TIMEZONE:-UTC}
    volumes:
      - data:/home/node/.n8n
    # The port listens before the editor is ready: the deploy waits for the editor.
    healthcheck:
      test: ["CMD", "node", "-e", "fetch('http://127.0.0.1:5678/healthz/readiness').then(r=>process.exit(r.ok?0:1),()=>process.exit(1))"]
      interval: 5s
      timeout: 5s
      retries: 5
      start_period: 120s

volumes:
  data:

More in Automation