Deploy n8n Notion
Notion CRM, logs and wikis with n8n
Just deployed
/var/lib/postgresql/data
Just deployed
/home/node/.n8n
n8n-worker
Just deployed
Redis
Just deployed
/data
Deploy and Host self hosted n8n Notion (Open-Source Notion Automation) on Railway
Hosted n8n Notion workflows on Railway.
About Hosting n8n Notion open-source software on Railway (self hosted n8n template)
This Railway template deploys a production queue-mode n8n stack for Notion automation. The editor runs n8nio/n8n:2.36.8 on port 5678. Workers run the same image with command n8n worker. Postgres stores workflows and execution history; Redis Bull queues jobs. A persistent volume at /home/node/.n8n keeps credentials and workflow data. For a lighter single-node setup, use the cheapest n8n without queue mode.
Why Deploy n8n Notion, the Zapier Notion alternative on Railway (Railway Free Trial)
Zapier charges per task, so a Gmail-to-Notion workflow with field extraction and CRM logging can consume 4–5 tasks per trigger. n8n Community Edition is fair-code and has no per-execution fee. Notion automation is bursty: campaigns, support floods, and form spikes need parallel workers. Queue mode with Redis Bull absorbs bursts and workers drain them concurrently. Railway’s $5 free trial on GitHub signup lets you test this stack; typical monthly cost is $10–$25.
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying n8n Notion on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Railway vs Other Hosting Providers and VPS for n8n Notion self hosting
| Provider | Queue-mode setup effort | Scaling model | Notion automation fit |
|---|---|---|---|
| DigitalOcean | Manual Docker Compose for editor, worker, Redis, Postgres | Vertical droplet resizing; horizontal scaling manual | Workable but you own every moving part |
| AWS | ECS/EKS required; IAM, VPC, security group overhead | Auto-scaling possible but complex | Overkill for most Notion sync workloads |
| Hetzner | Cheap VPS with Docker Compose | Manual scaling; no managed Redis/Postgres | Budget-friendly but fully self-managed |
| Railway | Template deploys editor, workers, Redis, Postgres as connected services | One-click vertical and horizontal scaling per service | Purpose-built for this queue-mode stack |
Common Use Cases for hosted n8n Notion
- Gmail-to-Notion CRM: Parse inbound emails, extract fields, upsert rows into a Notion database.
- Form-to-Notion ingestion: Typeform, Tally, Google Forms, or custom HTML forms POST to n8n webhooks; map fields to Notion properties.
- Notion wiki maintenance: Scheduled cron workflows pull from Airtable, Sheets, or Postgres and regenerate Notion pages.
- CRM logging: Stripe payments, Intercom chats, or HubSpot stage changes write timestamped entries to a Notion activity log.
Dependencies for n8n Notion Docker hosted on Railway
Queue mode requires four connected Railway services: n8n editor, one or more n8n workers, Redis for Bull queue, and Postgres for durable storage. SQLite cannot run queue mode. All services share the same private network, encryption key, and database credentials.
Deployment Dependencies for Managed n8n Notion Service (Notion Automation)
- Editor:
n8nio/n8n:2.36.8, port 5678, serves web UI. - Worker: same image, command
n8n worker, connects to Redis and Postgres. - Redis: Bull queue backend for pending Notion sync jobs.
- Postgres: stores workflows, credentials, execution history.
- Volume:
/home/node/.n8npersists data across redeploys.
Environment variables: EXECUTIONS_MODE=queue, DB_TYPE=postgresdb, WEBHOOK_URL (public editor URL), N8N_PROXY_HOPS=1, N8N_ENCRYPTION_KEY (never lose it), EXECUTIONS_DATA_PRUNE=true.
Implementation Details for n8n Notion (Using n8n official docker image)
The official image includes the Notion node natively. Authenticate with a Notion integration token; share target databases with that integration. Gmail uses OAuth2, stored encrypted with N8N_ENCRYPTION_KEY in Postgres. In queue mode, the editor enqueues jobs into Redis Bull; workers poll and execute. Long Notion API calls, retries, and bulk syncs don’t block the editor. Scale workers horizontally via Railway replica slider.
How does n8n Notion compare against other Notion and knowledge-base automation platforms
n8n Notion vs Zapier Notion (Zapier Notion Alternative)
Zapier is task-metered; a multi-field Gmail-to-Notion workflow consumes several tasks per run. n8n Community Edition has no execution limit and includes code nodes, branching, and retries for free. Self-hosting on Railway costs less than Zapier at high volumes, but you own the infrastructure.
n8n Notion vs Make Notion (Make Notion Alternative)
Make’s visual builder is strong, but pricing scales with operations. Complex Notion syncs with transformations consume operations quickly. n8n decouples cost from execution volume and is self-hostable under fair-code, giving data residency and code control.
n8n Notion vs Notion API scripts (Notion API scripts Alternative)
Custom Python/Node scripts offer flexibility but require constant maintenance for new fields, triggers, and error handling. n8n provides a visual editor, built-in retries, webhook receiver, and queue-mode scaling without custom job queues.
n8n Notion vs Pipedream Notion (Pipedream Notion Alternative)
Pipedream is developer-friendly with a generous free tier, but daily invocation and execution time limits hinder long bulk Notion syncs. n8n on Railway gives persistent workers, Postgres-backed history, and no per-execution ceiling.
How to use n8n Notion (the OSS Notion Automation)?
Open the editor at the Railway URL on port 5678. Create a Notion integration, copy the token, add it as an n8n credential, and share target databases. Build a workflow: Gmail trigger → Notion node, map fields, activate. For forms, add a Webhook node and use WEBHOOK_URL. For scheduled syncs, use Cron trigger. Test manually, then monitor worker logs.
How to self host n8n Notion on other VPS Services (n8n Notion self hosting guide)
Clone the Repository
Clone a queue-mode reference repo or create a project directory with a docker-compose.yml defining editor, worker, Redis, and Postgres.
Install Dependencies
Install Docker Engine and Docker Compose. Open port 5678. Create volumes for /home/node/.n8n and Postgres data. Pull n8nio/n8n:2.36.8.
Configure Environment Variables
Set EXECUTIONS_MODE=queue, DB_TYPE=postgresdb, WEBHOOK_URL, N8N_PROXY_HOPS=1, N8N_ENCRYPTION_KEY, EXECUTIONS_DATA_PRUNE=true, plus Postgres and Redis connection details. Never lose the encryption key.
Start the n8n Notion Application
Run docker compose up -d. Check logs with docker compose logs -f editor and worker. Open http://your-vps-ip:5678, create owner account, add Notion and Gmail credentials. Use a reverse proxy with TLS for production.
Official Pricing of n8n Notion (n8n Notion pricing)
n8n Community Edition is free and fair-code, no per-execution fees. n8n Cloud Starter costs about $24/month for 2,500 executions. Self-hosting on Railway typically costs $10–$25/month. Community Edition has no SSO; manage access via Railway network or reverse proxy.
n8n Notion cloud vs self hosted comparison (Pricing, features, costs, and more)
Monthly cost of self hosting n8n Notion on Railway
A minimal Railway deployment (editor, one worker, Redis, 1 GB Postgres) costs $10–$25/month. Adding a second worker adds $5–$10. Railway’s $5 free trial covers testing. This is often cheaper than n8n Cloud Starter at $24/month for 2,500 executions.
System Requirements for Hosting n8n Notion on a VPS
Allocate at least 2 vCPU, 4 GB RAM, 20 GB SSD for a single-node queue-mode setup. For production with hundreds of daily executions, separate services: 1 vCPU Redis, 2 vCPU Postgres, 2 vCPU per worker. Railway handles separation automatically.
Frequently Asked Questions (FAQs)
Can I use SQLite with n8n queue mode for Notion automation?
No. Queue mode requires Postgres because SQLite cannot handle concurrent writes from multiple workers. Set DB_TYPE=postgresdb.
How do I connect n8n to my Notion database?
Create a Notion integration, copy the internal integration token, add it as an n8n Notion credential, and share the target database or page with the integration.
What happens if I lose my N8N_ENCRYPTION_KEY?
All stored credentials become unreadable. You must re-enter every Notion token and Gmail OAuth credential. Store the key securely and never rotate without re-saving credentials.
How many workers do I need for Notion automation?
Start with one worker. If executions queue during bursts, add a second worker via Railway’s replica slider. Redis Bull distributes jobs automatically.
Does n8n Community Edition include SSO for my team?
No. Community Edition has no built-in SSO. Restrict editor access with Railway private networking, a reverse proxy, or VPN. n8n Cloud and enterprise licenses add SSO.
Can I run n8n Notion without queue mode on Railway?
Yes. For low-volume syncs, the cheapest n8n without queue mode runs a single container with SQLite. Queue mode is only needed for parallel workers, burst tolerance, or Postgres-backed history. Queue-mode workers keep n8n Notion executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n Notion executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n Notion executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n Notion executions off the editor so webhooks stay fast under load. Queue-mode workers keep n8n Notion executions off the editor so webhooks stay fast under load.
Template Content
n8n-worker
n8nio/n8n:2.36.8Redis
redis:8.2