---
title: "Deploy Postiz (Temporal)"
description: "All-in-one platform for social media management with Temporal orchestration"
category: "Other"
url: https://railway.com/deploy/postiz-temporal
---

# Deploy Postiz (Temporal)

All-in-one platform for social media management with Temporal orchestration

**[Deploy Postiz (Temporal) on Railway](https://railway.com/template/postiz-temporal)**

- **Creator:** Protemplate
- **Category:** Other
- **Total deploys:** 120

## Template content

### Redis https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/Redis_Mark_Red_RGB.png

- **Image:** redis:8.2.1
- **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"`

### Temporal UI https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/temporal-logo.svg

- **Image:** temporalio/ui:2.45.3
- **Public domain:** Yes

### Temporal Auto Setup https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/temporal-logo.svg

- **Image:** temporalio/auto-setup:1.29.3

### Temporal Admin Tools https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/temporal-logo.svg

- **Image:** temporalio/admin-tools:1.29

### Postiz https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/postiz.png

- **Image:** ghcr.io/gitroomhq/postiz-app:latest
- **Public domain:** Yes

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

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

### Elasticsearch https://somi-public-assets.s3.ap-southeast-1.amazonaws.com/railway/elasticsearch.svg

- **Source:** protemplate/elasticsearch-railway

## Documentation

# Deploy and Host Postiz with Temporal on Railway
<img width="280" src="https://github.com/user-attachments/assets/f0d30d70-dddb-4142-8876-e9aa6ed1cb99" alt="Postiz Logo">
Postiz is an open-source social media scheduling and management platform with AI-powered content creation, multi-platform publishing across 19+ networks, team collaboration, and automation features. This template bundles Postiz with Temporal for durable workflow orchestration, ensuring scheduled posts publish reliably even through server restarts or network failures.

![Image 1](https://github.com/user-attachments/assets/a27ee220-beb7-4c7e-8c1b-2c44301f82ef)
![Image 2](https://github.com/user-attachments/assets/eb5f5f15-ed90-47fc-811c-03ccba6fa8a2)

## About Hosting Postiz (Temporal)

Hosting Postiz with Temporal involves deploying seven interconnected services: the Postiz application itself (a Next.js frontend with a NestJS backend), PostgreSQL for persistent storage, Redis for caching and sessions, Elasticsearch for Temporal's visibility layer, the Temporal workflow engine, a Temporal web UI for monitoring workflows, and Temporal Admin Tools for debugging. All services communicate over private networking, with Postgres shared between Postiz and Temporal. The Postiz container serves both the frontend (port 4200) and backend API (port 3000) behind an nginx reverse proxy on port 5000.

## Common Use Cases

- Schedule and auto-publish content across multiple social media platforms (Instagram, TikTok, LinkedIn, X, YouTube, and more) with guaranteed delivery through Temporal's durable execution
- Manage social media for multiple brands or clients with team collaboration, approval workflows, and centralized analytics
- Automate engagement workflows such as auto-liking, auto-commenting at engagement milestones, and first-comment scheduling

## Dependencies for Postiz (Temporal) Hosting

- PostgreSQL 17 (shared by Postiz and Temporal for application data, workflow state, and visibility)
- Redis 8 (caching, session management, and background job queues)
- Elasticsearch (Temporal visibility store for searching and filtering workflow executions)
- Temporal Server 1.29.3 (durable workflow orchestration engine via auto-setup image)

### Deployment Dependencies

- [Postiz Documentation](https://docs.postiz.com)
- [Postiz GitHub Repository](https://github.com/gitroomhq/postiz-app)
- [Temporal Documentation](https://docs.temporal.io)

### Implementation Details

The template pre-configures all service connections through Railway's reference variables — `DATABASE_URL`, `REDIS_URL`, and `TEMPORAL_ADDRESS` are wired automatically between services. Secrets like `JWT_SECRET`, `POSTGRES_PASSWORD`, `REDIS_PASSWORD`, and `ELASTIC_PASSWORD` are generated at deploy time. After deploying, set three variables on the Postiz service to your custom domain:

- `MAIN_URL` — your custom domain (e.g., `https://postiz.example.com`)
- `FRONTEND_URL` — same as `MAIN_URL`
- `NEXT_PUBLIC_BACKEND_URL` — same as `MAIN_URL`, appended with `/api`

The template includes an `ON_FAILURE` restart policy (max 10 retries) on the Postiz service. This handles the startup race condition where Postiz may boot before Temporal is ready — Railway automatically restarts the container until Temporal accepts connections.

## Why Deploy Postiz (Temporal) 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 Postiz (Temporal) 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.

### Notes 🔔

If you run into issues registering or logging in after the first deploy, redeploy the Postiz service. This happens when Postiz starts before Temporal is ready — a one-time race condition that a simple redeploy resolves.

### Tips 💁‍♂️

Remember to run redeploy after updating Postiz.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/postiz-temporal
