Deploy n8n on Pethost in one click
Workflow automation with a visual editor
What happens
- You sign in to Pethost or make an account, with a passkey, GitHub or Google.
- No machine yet? You pick a plan, and we prepare one for you. The link waits in your browser until it is ready.
- New project opens at the app, and you click Create project.
- In a minute or two the app is live at its own address with HTTPS. Its secrets are made for it at random, and its data is in the nightly backup.
- It is a project like any other: its compose.yaml, its .env, its logs and a terminal are in the panel, and your agent can change it, roll it back or restore it.
First steps
Open the address and create the owner account on the first page. Do it right away: until then the page is open to whoever has the address. Schedules run in UTC: for another zone add GENERIC_TIMEZONE, for example Europe/Berlin, to the project’s .env and deploy again.
What it runs
The template is this compose.yaml and the variables it writes into the project’s .env. Pethost runs the file as it is written.
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: