Deploy flowcomments-template

One-click self-host Instagram comment-to-DM with Postgres + Redis.

Deploy flowcomments-template

Just deployed

/var/lib/postgresql/data

Just deployed

/data

Deploy and Host Flowcomments on Railway

Flowcomments is source-available Instagram comment and DM automation. Deploy the self-host core on Railway in one click: web app, background worker, PostgreSQL, and Redis.

About Hosting Flowcomments on Railway

This template provisions:

  • App — Next.js + Prisma, built from the GitHub Dockerfile (web + worker in one service)
  • PostgreSQL — managed database (DATABASE_URL)
  • Redis — managed queue for automations (REDIS_URL)

On first boot the container runs prisma migrate deploy, starts the web server, and starts the worker when REDIS_URL is set.

Public networking and a healthcheck on /api/health are included. After deploy, complete the setup wizard and point the Meta webhook at your Railway domain.

Common Use Cases

  • Self-host Instagram comment-to-DM automation without managing Postgres/Redis yourself
  • Run a private Flowcomments instance for a brand or agency with encrypted credentials
  • Spin up a staging environment that mirrors production (app + worker + databases)

Dependencies for Flowcomments Hosting

  • Railway account (Hobby plan recommended for always-on Redis + Postgres)
  • Public source: NathanConde-dev/flowcomments (no GitHub config needed for Deploy Now)
  • Meta Developer App with Instagram messaging and comment permissions

Deployment Dependencies

Why Deploy Flowcomments on Railway

  • One-click stack with databases already wired via variable references
  • HTTPS public domain out of the box (NEXT_PUBLIC_URL follows RAILWAY_PUBLIC_DOMAIN)
  • Healthcheck on /api/health and restart policy for the app service
  • Push-to-deploy from GitHub main after the template forks the project

After Deploy

  1. Open the public Railway URL and complete the setup wizard (/setup) — create the admin account and Meta App credentials.
  2. Generate a public domain if the template did not assign one, then confirm NEXT_PUBLIC_URL matches https://YOUR_DOMAIN.
  3. In Meta for Developers, set the webhook callback to: https://YOUR_DOMAIN/api/webhook
  4. Connect Instagram under Settings → Instagram.

Environment Variables

VariableSource
DATABASE_URL${{Postgres.DATABASE_URL}}
REDIS_URL${{Redis.REDIS_URL}}
NEXT_PUBLIC_URLhttps://${{RAILWAY_PUBLIC_DOMAIN}}
ENCRYPTION_KEYgenerated secret
SESSION_SECRETgenerated secret
RUN_WORKERtrue
FLOWCOMMENTS_UPDATE_REPONathanConde-dev/flowcomments
FLOWCOMMENTS_CONTROL_PLANE_URLhttps://flowcomments.com
ENABLE_SELF_UPDATEfalse (never enable on Railway)
FLOWCOMMENTS_TELEMETRYtrue
FLOWCOMMENTS_UPLOAD_DIR/app/data/uploads
REDIS_URL${{Redis.REDIS_URL}} (required)

These update vars keep Novidades working after deploy: the app checks GitHub releases, and if the repo is private/rate-limited it falls back to the Cloud feed at /api/v1/releases.

Persistent media

The template already mounts a volume at /app/data/uploads (FLOWCOMMENTS_UPLOAD_DIR). Do not remove it — redeploys would wipe DM image/audio files.

Redis (required)

The template already provisions Redis. Do not remove it: queues, long automation delays, comment recovery, and IG token refresh depend on REDIS_URL + the embedded worker (RUN_WORKER=true).


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
125
View Template
Postgres Backup
Cron-based PostgreSQL backup to bucket storage

Railway Templates
865