Deploy Instatic CMS - Postgres

Design, build and manage powerful static sites from state-of-the-art CMS

Deploy Instatic CMS - Postgres

corebunch/instatic:latest

corebunch/instatic:latest

Just deployed

/app/storage

/var/lib/postgresql/data

Deploy and Host Instatic CMS with Postgres on Railway

Instatic is an open-source, self-hosted CMS with a built-in visual editor, real-time co-editing, and a first-class plugin system. Pages publish as plain, semantic HTML and hand-clean CSS, with no framework runtime shipped to your visitors.

Read more: https://instatic.com

About Hosting Instatic CMS with Postgres

This template runs the official Instatic Docker image as a Bun service connected to a Railway-managed Postgres database over Railway's private network. Postgres stores all content, users, and settings. A Railway volume mounted at /app/storage on the app service holds uploaded media, fonts, plugin packages, and published pages, so they survive redeploys. Railway provides the public HTTPS domain, health checks, and the generated encryption key. Open the URL after the first deploy and create your owner account.

Common Use Cases

  • Business, marketing, and content sites that grow over time
  • Agencies hosting client sites with several editors
  • Teams editing pages together in real time
  • Installs that want managed database backups and an inspectable SQL database
  • Moving an Instatic site off SQLite onto a dedicated database

Dependencies for Instatic CMS with Postgres Hosting

  • Bun runtime (bundled in the Docker image)
  • PostgreSQL (Railway-managed database service)
  • Railway volume for uploads, fonts, plugins, and published pages

Deployment Dependencies

Implementation Details

The template creates two services:

  • Postgres: Railway's managed PostgreSQL, reachable only over the private network
  • Instatic: the app, with a volume mounted at /app/storage and these variables:
    • DATABASE_URL=${{Postgres.DATABASE_URL}}
    • UPLOADS_DIR=/app/storage/uploads
    • STATIC_DIR=/app/dist
    • PUBLIC_ORIGIN=https://${{RAILWAY_PUBLIC_DOMAIN}}
    • INSTATIC_SECRET_KEY generated on deploy. Save it in your password manager: losing it means AI provider keys, plugin secrets, and 2FA must be set up again.
    • Port 8080, health check at /health

Back up both the Postgres database and the app volume. A database backup alone does not include your media or published pages.

To use a custom domain, add it to PUBLIC_ORIGIN as a second comma-separated entry, or sign-in will fail with "invalid origin".

Why Deploy Instatic CMS with Postgres 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 Instatic CMS with Postgres 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
Libredesk - Complete Setup
Complete self-hosted omnichannel customer support desk.

codestorm
2
View Template
Paperless-ngx
Paperless-ngx — document management with OCR and full-text search

INAPP
1
View Template
medusa-v2
Medusa v2 commerce backend: server+worker split, Postgres+Redis, one-click

Nameless
0