---
title: "Deploy Postfalcon | Social Media Scheduler"
description: "Schedule and cross-post to Mastodon, Bluesky, Instagram, TikTok and more"
category: "Automation"
url: https://railway.com/deploy/social-media
---

# Deploy Postfalcon | Social Media Scheduler

Schedule and cross-post to Mastodon, Bluesky, Instagram, TikTok and more

**[Deploy Postfalcon | Social Media Scheduler on Railway](https://railway.com/template/social-media)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/social-media/manifest.json

- **Creator:** Two Workspaces
- **Category:** Automation

## Template content

### Postfalcon https://raw.githubusercontent.com/two-workspaces/postfalcon/main/icon.svg

- **Source:** https://github.com/two-workspaces/postfalcon
- **Health check:** /health
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:16

## Documentation

# Deploy and Host Postfalcon on Railway

[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/social-media?referralCode=sLjDXb&utm_medium=integration&utm_source=button&utm_campaign=postfalcon)

Postfalcon is an open-source social media scheduler. You write a post once, place it on a calendar, and Postfalcon publishes it on time to Mastodon, Bluesky, Telegram, Facebook, Instagram, Threads, YouTube, TikTok, Pinterest and LinkedIn (X too, on a paid X API plan). It has drag-to-reschedule, drafts, recurring posts, per-platform options, analytics pulled back from the platforms, a REST API, an MCP server for AI agents, and outbound webhooks. This template runs Postfalcon 1.0.0 on Railway with Postgres, media and backups on a volume, and the admin account ready on first boot.

This is a community template, not made or supported by the Postfalcon authors.

## About Hosting Postfalcon

Deploy, wait for the green check, and open the Railway domain. Sign in with `ADMIN_EMAIL` (set it to your email before deploying) and the generated `ADMIN_PASSWORD`, both on the Postfalcon service's Variables tab. Change the password under Settings afterwards; the variable is only used to create the account on the first boot.

**Why the admin is created for you:** on a fresh Postfalcon server the first person to sign up becomes the admin. On a public address that could be a stranger, so this template creates the admin from your variables before the server starts, and sets sign-ups to invite-only. Open or close sign-ups, and create invite links, under Admin > Customers.

**Connecting accounts:** Mastodon, Bluesky and Telegram work straight away from the Accounts page. Every other platform needs your own developer app: add its keys as variables on the Postfalcon service (for example `FACEBOOK_APP_ID` and `FACEBOOK_APP_SECRET`, `GOOGLE_CLIENT_ID` and `GOOGLE_CLIENT_SECRET`, `TIKTOK_CLIENT_KEY` and `TIKTOK_CLIENT_SECRET`) and redeploy. Admin > Platforms > "How to set up" shows where to create each app and the callback URL to register, and [upstream's .env.example](https://github.com/postfalcon/postfalcon/blob/main/.env.example) lists every variable.

**Email:** without SMTP, verification and password-reset emails are written to the service's Deploy Logs instead of sent, so a forgotten admin password can still be reset by requesting a reset and opening the link from the logs. To send real email, fill in `SMTP_HOST`, `SMTP_PORT`, `SMTP_USER` and `SMTP_PASS`.

**Your data:** posts, accounts and settings are in the Postgres service. Uploaded media and the nightly database backups (03:30 UTC, last 7 kept) are on the Postfalcon volume at `/data`. Redeploys and upgrades keep all of it. To keep media and backup copies in a bucket instead, set `S3_BUCKET`, `S3_ENDPOINT`, `S3_ACCESS_KEY_ID`, `S3_SECRET_ACCESS_KEY` and `S3_REGION`.

**Custom domain:** add it under the Postfalcon service's Settings > Networking, set `BASE_URL=https://social.example.com` (no trailing slash), redeploy, and update the callback URLs in your platform apps.

**One instance only:** the scheduler runs inside the server, so never scale the Postfalcon service to more than one replica, or every post is published twice.

## Common Use Cases

- Planning a month of posts for a project, brand or community on one calendar
- Cross-posting the same announcement to Mastodon, Bluesky and Telegram at a set time
- Letting an AI agent draft and schedule posts through the MCP server or the REST API
- Recurring daily, weekly or monthly posts without a paid scheduler subscription
- A shared scheduler for a small team, with accounts given out by invite link

## Dependencies for Postfalcon Hosting

- Postgres (included)
- For platforms other than Mastodon, Bluesky and Telegram: your own developer app on that platform

### Deployment Dependencies

- [Postfalcon on GitHub](https://github.com/postfalcon/postfalcon)
- [Postfalcon website](https://postfalcon.co)
- [Template source](https://github.com/two-workspaces/postfalcon)

### Implementation Details

- **Services:** Postfalcon (the web app with its built-in scheduler) and Postgres 16 on Railway's private network. Postgres stays on 16 because the app's nightly backup runs the image's `pg_dump` 16, which refuses a newer server. Database migrations run on every start.
- **Secrets:** the admin password, session secret and database password are generated per deploy. If the session secret or admin password is emptied, a replacement is generated once and kept on the volume.
- **Never crash-looping on a variable:** Postfalcon waits for Postgres on start. If the database can't be prepared, `ADMIN_EMAIL` isn't an email address, or the server stops within a minute of starting, the service shows a "Postfalcon is not running" page and the deploy logs say what to fix.
- **Image:** upstream's official `ghcr.io/postfalcon/postfalcon:1.0.0`, pinned, plus a small entrypoint. It runs as upstream's unprivileged `node` user.
- **Memory:** about 100 MB at rest, so it fits the smallest plans.

## Why Deploy Postfalcon 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 Postfalcon 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.


## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/social-media
