Self-hosting and deployment
Self-hosting overview
Requirements, the Docker image, docker-compose, running without Docker, first boot and upgrades.
Updated November 21, 2026
HeyOrbit is a Next.js 15 application with Prisma. It runs as a single Node process with a SQLite database by default, and on Postgres for production (Postgres). It also runs on serverless hosts such as Vercel, with Postgres, object storage and a cron.
Requirements#
- Node.js 22 (the Docker image is based on node:22-bookworm-slim)
- Persistent storage for the database and uploads, or Postgres plus object storage (file storage)
- A public HTTPS URL: platform sign-ins need it, and platforms download your media from it when publishing
- Optional, each switching on a feature: a Composio account for social sign-ins, a Zernio account for social connections (LinkedIn needs a paid account slot), an Anthropic API key for AI writing, a Replicate token for AI image models, SMTP for email, Stripe and/or Razorpay for billing, Unsplash, Canva, Google and Dropbox keys for media imports, and a Chromium binary for PDF reports (environment variables)
Docker#
docker build -t heyorbit .
docker run -p 3000:3000 --env-file .env -v heyorbit-data:/app/data heyorbitOr with the included compose file:
services:
app:
build: .
ports:
- "3000:3000"
env_file: .env
environment:
DATABASE_URL: "file:/app/data/heyorbit.db"
INPROCESS_SCHEDULER: "true"
volumes:
- heyorbit-data:/app/data
- heyorbit-uploads:/app/public/uploads
restart: unless-stopped
volumes:
heyorbit-data:
heyorbit-uploads:On start the container runs prisma db push (creating or updating the schema) and then serves the app on port 3000. The image is built for SQLite; see Postgres to switch.
Without Docker#
npm ci
cp .env.example .env # fill in values
npx prisma db push
npm run build
npm run start # port 3000Put a reverse proxy (Caddy, nginx, Traefik) in front for TLS and set APP_URL to the public URL.
First boot#
- Open the app and sign up. Every account gets a first workspace.
- Optional: npm run db:seed loads a demo user (demo@heyorbit.tech) with sample workspaces. Running it again recreates that demo user only; other accounts are untouched.
- Connect platforms once Composio or the platforms' own apps are configured (environment variables).
- Set ADMIN_USERNAME and ADMIN_PASSWORD for the operator console at /admin, which lists customers and their plans.
Upgrades#
Pull the new code or image, rebuild, restart. prisma db push applies schema changes on boot. Back up the database (and uploads, if they're on local disk) before upgrading.
Scheduler#
Publishing is checked every minute (every 30 seconds with the in-process timer), and background syncs run every 30 minutes by default. On serverless or multi-instance deployments, call the cron endpoint from outside (cron and the scheduler).
Files#
Without object storage, uploads are written to public/uploads; mount a volume there (file storage).