# Self-hosting overview

> Requirements, the Docker image, docker-compose, running without Docker, first boot and upgrades.

URL: https://heyorbit.tech/docs/self-hosting/overview
Last updated: 2026-11-21

Self-hosting and deployment · [Documentation](https://heyorbit.tech/docs)

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](https://heyorbit.tech/docs/self-hosting/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](https://heyorbit.tech/docs/self-hosting/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](https://heyorbit.tech/docs/self-hosting/environment-variables))

## Docker

~~~bash
docker build -t heyorbit .
docker run -p 3000:3000 --env-file .env -v heyorbit-data:/app/data heyorbit
~~~

Or with the included compose file:

~~~yaml
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](https://heyorbit.tech/docs/self-hosting/postgres) to switch.

## Without Docker

~~~bash
npm ci
cp .env.example .env   # fill in values
npx prisma db push
npm run build
npm run start          # port 3000
~~~

Put a reverse proxy (Caddy, nginx, Traefik) in front for TLS and set APP_URL to the public URL.

## First boot

1. Open the app and sign up. Every account gets a first workspace.
2. 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.
3. Connect platforms once Composio or the platforms' own apps are configured ([environment variables](https://heyorbit.tech/docs/self-hosting/environment-variables)).
4. 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](https://heyorbit.tech/docs/self-hosting/cron-scheduler)).

## Files

Without object storage, uploads are written to public/uploads; mount a volume there ([file storage](https://heyorbit.tech/docs/self-hosting/file-storage)).
