Self-hosting n8n on a VPS in India: setup, security, backups and what it really costs
Self-hosting n8n gives you unlimited executions, data control and low running costs, in exchange for maintenance responsibility. This guide covers choosing a server, Docker setup, HTTPS, security, backups, updates and when cloud is the better choice.
Self-hosting n8n means running it on your own server, usually a small VPS with Docker, a PostgreSQL database and HTTPS through a reverse proxy. You get unlimited workflow executions and control over where data lives, but you take on security, backups and updates. For businesses running many workflows, it is often the most cost-effective option.
Self-hosting is module ten of No-Code Agentic AI Development (deployment, measurement and rollout), and students deploy their own instance. This guide gives the overview; always follow the current n8n hosting documentation for exact commands, because they change between versions.
Should you self-host or use n8n Cloud?
The Sustainable Use License allows free self-hosting for internal business use. If you plan to offer n8n as a service to others or embed it in a product, check the license terms and enterprise options.
What server do you need?
Entry-level VPS plans from Indian and global providers often cost in the range of a few hundred to a couple of thousand rupees a month for this size, depending on provider and specifications.
What are the main setup steps?
automation.yourcompany.in to the server.Asia/Kolkata, database connection and a strong encryption key.# excerpt of key n8n environment settings (values are examples) N8N_HOST=automation.yourcompany.in N8N_PROTOCOL=https WEBHOOK_URL=https://automation.yourcompany.in/ GENERIC_TIMEZONE=Asia/Kolkata DB_TYPE=postgresdb N8N_ENCRYPTION_KEY=<long random secret, stored safely>
Back up the encryption key separately. n8n uses it to encrypt saved credentials; if you lose it, restored databases cannot decrypt your API keys and passwords.
How do you secure a self-hosted instance?
How should backups work?
How do you update n8n safely?
Read the release notes for breaking changes, back up first, update the Docker image tag in a test environment if you have one, then in production during a quiet period, and run your key workflows to confirm. Pin specific versions rather than always pulling "latest" so updates happen when you choose.
When do you need queue mode?
By default n8n runs executions in the main process. When volume grows, or long AI and file workflows slow everything down, queue mode separates the main instance from worker processes using Redis, so you can add workers to handle more executions in parallel. Most small businesses never need it; agencies and high-volume operations eventually do.
Source: Careers Ninza illustration; real prices vary by provider, plan, exchange rate and volume. Self-hosting also needs maintenance time.
What are the limits of self-hosting?
Someone must own the server: updates, monitoring, backups and incident response. If nobody in the business can do that, cloud is safer. Downtime on a self-hosted instance means missed webhooks and delayed workflows, so set up uptime monitoring and alerts from day one.
What does a production-ready Compose setup include?
The structure of a typical self-hosted stack (simplified; follow the official docs for exact files):
How do you monitor a self-hosted instance?
Disk space is the most common cause of outages we see on small self-hosted instances: execution logs and binary data accumulate silently. Configure pruning from day one.
Can you run n8n on shared hosting or a cPanel account?
Generally not well. n8n needs a long-running Node.js process, persistent storage and often Docker, which typical shared hosting does not provide reliably. A small VPS or a managed container platform is the practical minimum. Some hosting panels now offer Node.js app hosting that can run n8n, but check memory limits and process limits carefully before relying on it for business workflows.
What about agencies hosting n8n for several clients?
Agencies often run one instance per client for isolation of data and credentials, or use n8n’s enterprise features for multi-team setups. Keep clients’ credentials separate, document who owns each server, and include hosting and maintenance in the monthly care plan. Check the license terms if hosting for clients is part of what you sell.
Our No-Code Agentic AI Development batches run live online, so the same class reaches learners and business owners in metros such as Bengaluru, Pune, Kolkata, Mumbai and Delhi NCR, growing cities such as Jaipur, Kanpur, Madurai, Raipur and Dehradun, and smaller industrial towns such as Panipat, Firozabad, Karur, Durgapur and Dibrugarh, at the same fee. Each city page explains how local businesses use n8n deployment, for example in Jaipur, Panipat, Madurai.
Learn this live: No-Code Agentic AI Development
Deploy, secure and monitor your own n8n instance and ship AI automations to production. 40 live hours, ₹34,999 paid in full or ₹40,000 as No-Cost EMI of ₹20,000 × 2.
Ship AI agents that do real work — without writing production code.
Frequently asked questions
Related reading
We teach this, live
Every article here comes from something we teach. Sit in on a free masterclass and judge the mentors yourself.