Skip to content

Operations Guide

This guide is for self-hosters and operators running a production Postmill instance. It covers deployment, configuration, backup, and ongoing maintenance.

What's involved in running Postmill

Postmill is a multi-service application that schedules and publishes social media and chat posts across 36 channels. Running your own instance means operating:

  • The Postmill application container (Node.js backend + Next.js frontend combined)
  • A PostgreSQL 17 database (application data)
  • A Redis 7 cache and message broker
  • Inngest for durable background jobs (dev server locally, Cloud in production)
  • Optional object storage for uploaded media (local disk, S3, R2, B2, or IDrive e2)

The operational surface is moderate: most state lives in Postgres, background work is durable through Inngest, and media can live on local disk or cloud object storage.

Stack at a glance

ComponentTechnologyRole
ApplicationNode.js >=24.0.0, Next.js 16, NestJS 11API + frontend server
Primary databasePostgreSQL 17Users, orgs, posts, integrations, config
Cache / queueRedis 7Session cache, throttle store, analytics cache
Background jobsInngestAnalytics, comments, publish, token refresh
Media storageLocal disk or S3/R2/B2/IDrive e2Uploaded images, video, audio
Monitoring (opt)Sentry + SpotlightError tracking, debug proxy

Guide pages

PageDescription
RequirementsHardware, software, and network prerequisites
Docker DeploymentRunning the full stack with Docker Compose
ConfigurationEvery environment variable, organised by category
Inngest & CronBackground job inventory and scheduling
Video RenderingLocal media render queue and optional Podman workers
Storage SetupLocal and cloud storage providers, quotas, per-org routing
Backup & RetentionWhat to back up, how to restore, automated data retention
Scaling & DeploymentProduction image, horizontal scaling, health probes, graceful shutdown, OpenTelemetry
UpgradingClean upgrade path and building from source
Schema RollbackPrisma migrate rollback playbook — forward-only down migrations, half-applied recovery, expand/contract
SecurityHelmet, CSRF, SSRF, encryption, JWT, Sentry scrubbing, throttling
OAuth / SSOGeneric OIDC provider setup (Authentik, Keycloak, etc.)
Subscriptions & StripeStripe config, plans, metered caps, add-ons, and self-host defaults

Verified against v1.0.0

The AI-native social media management platform — postmill.ai