Deploy Instance

Self-hosted Instagram automation and sales CRM platform.

Deploy Instance

Just deployed

/data

Just deployed

Just deployed

/var/lib/postgresql/data

Just deployed

Deploy and Host Instance - Open Source Sales CRM & Instagram Automation on Railway

Instance is a complete open-source Instagram sales automation engine and social CRM. Built for creators, coaches, e-commerce brands, and sales agencies, Instance automates comment-to-DM funnels, story replies, icebreakers, and lead qualification with zero contact limits, zero software subscription fees, and 100% data ownership in your own infrastructure.

About Hosting Instance - Open Source Sales CRM & Instagram Automation

Deploying Instance on Railway launches an enterprise-ready, multi-tenant microservices architecture orchestrated through Docker. The deployment provisions a Next.js 16 web dashboard (web), a NestJS REST API server (api), and a high-throughput background worker service (workers) powered by BullMQ queues. State is managed via a dedicated PostgreSQL database and a Redis instance for distributed locks and queue scheduling. Railway manages container health, builds, SSL provisioning, and private networking automatically. Database migrations execute seamlessly before startup via Prisma, ensuring a zero-downtime, production-grade deployment ready to handle high-volume Instagram webhooks and conversations.

Common Use Cases

  • Comment-to-DM Sales Funnels: Automatically send discount codes, checkout links, and product guides when followers comment specific trigger keywords on feed posts, ads, or viral reels.
  • Instagram Story Mention and Reply Monetization: Detect when followers tag your brand in their stories or reply to your daily stories, delivering instant thank-you gifts, promo codes, or qualification quizzes.
  • Inbound Lead Qualification and Social CRM Pipeline: Run interactive conversation flows with quick-reply buttons and icebreakers to capture verified email addresses, phone numbers, and move leads through visual CRM stages.
  • Automated Giveaways and Follower-Gated Deliverables: Verify whether an inbound lead follows your Instagram account before releasing free lead magnets, webinar access links, or giveaway entries.
  • Algorithmic Reach Booster with Anti-Spam Message Rotation: Automatically reply to public comments with rotating message variations and instant comment likes, maximizing post reach while keeping messaging natural and compliant.

Dependencies for Instance - Open Source Sales CRM & Instagram Automation Hosting

  • PostgreSQL (v14+): Relational database for multi-tenant workspace data, user profiles, conversation transcripts, and CRM contacts.
  • Redis (v6.2+): Distributed in-memory data store for BullMQ background job queues, rate limiting, and webhook deduplication.
  • Node.js (v20+ LTS): High-performance runtime powering the Next.js frontend, NestJS API, and background workers.
  • Meta for Developers Account: An approved Meta app with Instagram Professional or Business account access for webhook ingestion and Graph API messaging.

Implementation Details

Instance is architected as an isolated TypeScript monorepo with pre-configured cross-service networking:

  • Web Dashboard (apps/web): Next.js 16 with a visual drag-and-drop React Flow automation canvas, CRM pipeline, and analytics.
  • REST API (apps/api): NestJS server providing NextAuth authentication, workspace management, and signed HMAC SHA-256 Meta webhook ingestion.
  • Queue Workers (apps/workers): Independent BullMQ workers executing rate-limited DM delivery, story processing, and Instagram profile enrichment.
  • Database Layer (packages/prisma): Prisma ORM with automated schema migrations running via pnpm --filter @instance/db db:deploy.

Documentation and architecture guides are available at https://docs.instance.sale/oss.

Why Deploy Instance - Open Source Sales CRM & Instagram Automation on Railway?

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 Instance - Open Source Sales CRM & Instagram Automation 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.


Template Content

More templates in this category

View Template
N8N Main + Worker
Deploy and Host N8N with Inactive worker.

jakemerson
121
View Template
Evolution API with n8n
Automate WhatsApp workflows with Evolution API, n8n, and Postgres.

codestorm
113
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
867