---
title: "Deploy TryPost"
description: "Social media scheduler for teams and AI agents, with MCP and REST API"
category: "Automation"
url: https://railway.com/deploy/trypost-auto-setup
---

# Deploy TryPost

Social media scheduler for teams and AI agents, with MCP and REST API

**[Deploy TryPost on Railway](https://railway.com/template/trypost-auto-setup)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/trypost-auto-setup/manifest.json

- **Creator:** Auromations
- **Category:** Automation
- **Total deploys:** 1

## Template content

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

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

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### TryPost https://raw.githubusercontent.com/trypostit/trypost/v2.1.0/public/favicon.svg

- **Image:** ghcr.io/hmseeb/trypost-railway:2.1.0
- **Health check:** /up
- **Public domain:** Yes

## Documentation

# Deploy and Host TryPost on Railway

[TryPost](https://github.com/trypostit/trypost) is an open-source social media scheduler built for teams and AI agents. Write a post once, tailor it per network, and schedule it to LinkedIn, X, Instagram, Threads, TikTok, YouTube, Facebook, Pinterest, Bluesky, Mastodon, Telegram, Discord and Google Business from one calendar. Claude, ChatGPT and other AI clients can create and schedule posts for you through TryPost's built-in MCP server and REST API.

## About Hosting TryPost

This template runs TryPost 2.1.0 as one app service (web app, realtime server, queue workers and scheduler in a single container) with Postgres and Redis on Railway's private network. Uploaded media lives on an attached volume. Migrations run on every boot.

The stock TryPost image needs hand work before it runs anywhere but `localhost`. This template does that work for you:

- **You can log in.** Self-hosted TryPost closes public signup, so a fresh install has no way in. Your account is created on first boot from the email you enter in the deploy form, with a generated password.
- **It boots in production.** TryPost refuses to start without an RSA key pair for its API and MCP tokens. The template generates one on first boot and keeps it on the volume, so API keys and AI connections survive every redeploy.
- **Realtime works on your domain.** The stock browser bundle connects live updates to `localhost:8080`. Here it connects to whatever domain you open TryPost on, Railway's or your own.
- **It runs on Railway at all.** The stock image boots on Railway into `Class "Laravel\Pail\PailServiceProvider" not found`. This image is rebuilt flat so that cannot happen.

## Common Use Cases

- Plan and schedule a brand's posts across every network from one calendar
- Let Claude or ChatGPT draft, schedule and analyze posts over MCP
- Run an agency workspace per client with approvals, labels and notes
- Turn an RSS feed or a long post into a week of scheduled content
- Track post performance across networks in one place

## Dependencies for TryPost Hosting

- Postgres (posts, accounts, sessions)
- Redis (queues, cache and the Horizon dashboard)

### Deployment Dependencies

- TryPost source: https://github.com/trypostit/trypost
- Railway image and build files: https://github.com/hmseeb/trypost-railway
- TryPost Cloud (the hosted version): https://trypost.it

### Implementation Details

**Signing in.** The deploy form asks for one thing: your email. When the deploy finishes, open the TryPost service's **Variables** tab and copy `TRYPOST_ADMIN_PASSWORD`. Open the public URL and sign in with your email and that password. Change the password under **Settings, Profile** afterwards. The variable is only read while the database has no users, so editing it later does nothing. The deploy log line `[railway-boot] admin account created for YOUR_EMAIL` confirms the account exists.

**Adding teammates.** Public signup stays closed. Invite people from **Settings, Members**; the invite link lets them register. Invites are sent by email, so set up SMTP first (below).

**Connecting social networks.** Bluesky (your handle plus an app password) and Mastodon connect with no developer app. Every other network needs your own developer app on that network. Create the app, set its redirect URL to `https://YOUR_DOMAIN/accounts/PLATFORM/callback`, add the variables to the TryPost service and redeploy. Add only the ones you need:

| Network | Variables | Redirect URL path |
| --- | --- | --- |
| LinkedIn | `LINKEDIN_CLIENT_ID`, `LINKEDIN_CLIENT_SECRET` | `/accounts/linkedin/callback` |
| X | `X_CLIENT_ID`, `X_CLIENT_SECRET` | `/accounts/x/callback` |
| Facebook | `FACEBOOK_CLIENT_ID`, `FACEBOOK_CLIENT_SECRET` | `/accounts/facebook/callback` |
| Instagram | `INSTAGRAM_CLIENT_ID`, `INSTAGRAM_CLIENT_SECRET` | `/accounts/instagram/callback` |
| Threads | `THREADS_CLIENT_ID`, `THREADS_CLIENT_SECRET` | `/accounts/threads/callback` |
| TikTok | `TIKTOK_CLIENT_ID`, `TIKTOK_CLIENT_SECRET` | `/accounts/tiktok/callback` |
| YouTube | `GOOGLE_CLIENT_ID`, `GOOGLE_CLIENT_SECRET` | `/accounts/youtube/callback` |
| Pinterest | `PINTEREST_CLIENT_ID`, `PINTEREST_CLIENT_SECRET` | `/accounts/pinterest/callback` |
| Google Business | `GOOGLE_BUSINESS_CLIENT_ID`, `GOOGLE_BUSINESS_CLIENT_SECRET` | `/accounts/google-business/callback` |
| Discord | `DISCORD_CLIENT_ID`, `DISCORD_CLIENT_SECRET`, `DISCORD_BOT_TOKEN` | `/accounts/discord/callback` |
| Telegram | `TELEGRAM_BOT_TOKEN`, `TELEGRAM_BOT_USERNAME`, `TELEGRAM_WEBHOOK_SECRET` | none (see below) |

Telegram also needs its webhook registered once after you add the variables: run `php artisan telegram:set-webhook` in the TryPost service with `railway ssh`. TryPost's `.env.example` lists the optional scopes for each network.

**AI features (optional).** Add `OPENAI_API_KEY`, `ANTHROPIC_API_KEY`, `GEMINI_API_KEY` or `OPENROUTER_API_KEY`, and pick the provider with `AI_TEXT_PROVIDER` (`openai` by default). Connecting Claude or ChatGPT over MCP needs no key here; start it from **Settings, MCP**.

**Email (optional, add any time).** Without SMTP, emails (invites, password resets, notes) are written to the logs instead of sent. To send them, set on the TryPost service: `MAIL_MAILER` = `smtp`, `MAIL_HOST`, `MAIL_PORT` (`587`), `MAIL_USERNAME`, `MAIL_PASSWORD`, and `MAIL_FROM_ADDRESS` on a domain your provider has verified. On port 587 leave `MAIL_SCHEME` unset (TLS is negotiated automatically); on port 465 set it to `smtps`.

**Media storage.** Uploads go to the volume at `/var/www/html/storage/app`. To use Cloudflare R2 or S3 instead, set `FILESYSTEM_DISK` to `r2` or `s3` and add the `R2_*` or `AWS_*` variables from TryPost's `.env.example`.

**Custom domain.** Add it under the TryPost service's **Settings, Networking**, set `APP_URL` to `https://YOUR_DOMAIN`, update the redirect URL in every network app you created, and redeploy. Realtime follows the domain on its own.

**Queues and scheduler.** The scheduler checks for due posts every minute, and Horizon runs the workers that publish them. Open `https://YOUR_DOMAIN/horizon` to watch the queues; access is limited to the emails in `HORIZON_ALLOWED_EMAILS` (your email by default).

**Resource use.** Expect about 2 GB of RAM at idle. TryPost keeps at least one Horizon worker per queue, with one queue per social network, so the container holds around 20 PHP workers even when nothing is publishing. That is TryPost's own production design, kept as is.

**Upgrading.** New TryPost releases get a matching image tag at `ghcr.io/hmseeb/trypost-railway`. Change the tag under the TryPost service's **Settings, Source** and redeploy; migrations run on boot. Back up Postgres first. Do not switch to the stock `ghcr.io/trypostit/trypost` image: it fails on Railway (see Troubleshooting).

**Troubleshooting**

- *"These credentials do not match our records" on first login*: copy `TRYPOST_ADMIN_PASSWORD` again from the Variables tab and check the email matches `TRYPOST_ADMIN_EMAIL`. If the boot log has no `admin account created` line, the variable was empty or not a valid email; fix it and redeploy (seeding runs on any boot while there are no users).
- *`Class "Laravel\Pail\PailServiceProvider" not found` in the deploy logs*: the service was switched to the stock image. Point it back at `ghcr.io/hmseeb/trypost-railway`.
- *403 on `/horizon`*: your login email is not in `HORIZON_ALLOWED_EMAILS`.
- *A network refuses to connect with a redirect error*: the redirect URL in that network's app must match `APP_URL` exactly, including `https://`.
- *API keys or AI connections stopped working after deleting the volume*: the token signing keys live on it. Create new API keys and reconnect.

**Security.** Postgres and Redis have no public address; only the TryPost web app is exposed. `APP_KEY` encrypts sessions and stored social tokens: changing it disconnects every network. The token signing keys are stored on the volume; to manage them yourself instead, set `PASSPORT_PRIVATE_KEY` and `PASSPORT_PUBLIC_KEY` and the generated pair is ignored.

## Why Deploy TryPost on Railway?

A scheduler has to be awake at the minute a post is due, reachable over HTTPS for every network's OAuth callback, and backed by a database you own. Railway gives you all three in one click, and this template takes TryPost from "runs on localhost" to a working, signed-in instance on a real domain without a single manual step.


## 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/trypost-auto-setup
