Postiz: Self-Host Your Own Open-Source Social Media Scheduler with Docker Compose
Postiz is a trending, AGPL-licensed Buffer alternative: schedule posts to Mastodon, Bluesky, LinkedIn, X and more from your own server. What it does, what it needs, and how to run it with Docker Compose.
If you run a blog, a project or a small business, you probably post the same announcement to Mastodon, Bluesky, LinkedIn, X and a Discord server, one tab at a time. Hosted schedulers like Buffer or Hootsuite solve that, but they come with monthly plans, channel limits and your drafts living on someone else's servers.
Postiz is an open-source alternative you can run yourself. It is one of the projects on GitHub's daily trending list this week, has more than 38,000 stars, and its last three releases, all from October, each fixed security vulnerabilities. In this guide we look at what Postiz does, what you need to run it, and how to get it up with Docker Compose.
What is Postiz?
Postiz describes itself as a social media management platform for scheduling, automating and analyzing your content. You write a post once, pick the channels, and Postiz publishes it at the time you choose. A calendar shows everything that is planned, published or failed.
The project is licensed under AGPL-3.0. There is a paid Postiz Cloud, but the README states that the self-hosted edition is not feature-gated: no channel limits, no post limits and no team member limits. What you give up compared to the cloud version is convenience. You run the infrastructure, and you register your own developer apps with the social networks.
Under the hood it is a TypeScript monorepo: Next.js for the frontend, NestJS for the backend, Prisma with PostgreSQL, Redis, and (since v2.12.0) Temporal as the workflow engine that actually fires the scheduled posts.

Key features
- Multi-channel scheduling. The README lists Instagram, YouTube, LinkedIn, Reddit, TikTok, Facebook, Pinterest, Threads, X, Slack, Discord, Mastodon, Bluesky and Dribbble, and the docs keep posting rules for 34 platforms in total.
- Write once, tailor per channel. A global tab holds the shared text; you can unlock a single channel to adjust it, with a live preview of how each platform will render the post.
- Calendar and approvals. Plan posts visually, move them around, save drafts and see failed posts flagged with the error.
- Analytics. Impressions, engagement and follower numbers per channel, as long as your developer app has the required analytics scopes.
- Teams. Invite members to comment on and schedule posts, with no seat limit when self-hosted.
- Automation. A public API, webhooks, RSS auto-posting, a Node.js SDK, an n8n node and a Make.com integration.
- AI features (optional). A copilot for writing, AI images and video, and an MCP server and CLI for AI agents. On a self-hosted instance these only work if you bring your own API keys, for example
OPENAI_API_KEY.

Why self-host it?
- No subscription and no artificial limits. The self-hosted edition behaves like the top tier.
- Your data stays with you. Drafts, schedules, media and tokens live in your own PostgreSQL database and upload volume.
- It is hackable. AGPL means you can fork it and add a provider; if you offer a modified version to others over a network, you have to share your changes.
Before you start: the honest part
Postiz is not a lightweight container. Plan for these points before you deploy:
- Resources. The official Compose stack runs Postiz, PostgreSQL, Redis, Temporal, a second PostgreSQL for Temporal, Elasticsearch, the Temporal admin tools and the Temporal UI. The docs say it was tested on a 2 vCPU / 2 GB Ubuntu VM, but recommend 4 GB or more once you have several users or scheduled workflows.
- Developer apps per platform. For most networks you must create your own OAuth app and put the client ID and secret in the environment. Meta, YouTube and TikTok approvals can take weeks, according to the README. Bluesky, Lemmy, Nostr, Medium, Dev.to, Hashnode, WordPress and Listmonk are quicker, because for most of them you just enter your own credentials in the connect dialog. They are the fastest way to test your instance.
- HTTPS and one hostname. The docs' Traefik example notes that Postiz requires HTTPS, and the troubleshooting guide warns that a frontend and backend on different parent domains break OAuth with "Invalid state". Serve everything from one hostname behind your reverse proxy.
Install Postiz with Docker Compose
The Postiz docs ask you to use the official Compose repository rather than copying a snapshot, because services and variables change between releases. It also contains the dynamicconfig folder that Temporal mounts.
1. Clone the Compose repository
git clone https://github.com/gitroomhq/postiz-docker-compose
cd postiz-docker-compose
2. Pin the version
The file uses ghcr.io/gitroomhq/postiz-app:latest. I prefer to pin a release so updates happen when I decide. At the time of writing the newest release is v2.25.3 (24 October 2026), published for amd64 and arm64:
services:
postiz:
image: ghcr.io/gitroomhq/postiz-app:v2.25.3
3. Set your URLs and secrets
In the postiz service, replace the localhost URLs with your public HTTPS address and set a long random JWT_SECRET:
environment:
MAIN_URL: 'https://postiz.example.com'
FRONTEND_URL: 'https://postiz.example.com'
NEXT_PUBLIC_BACKEND_URL: 'https://postiz.example.com/api'
JWT_SECRET: 'paste-the-output-of-openssl-rand-base64-48-here'
DISABLE_REGISTRATION: 'true'
Generate the secret with:
openssl rand -base64 48
A few notes on these values:
FRONTEND_URLmust match the URL in your browser exactly, protocol and port included, otherwise the backend rejects requests with "Origin not allowed".- Set
JWT_SECRETonce. Changing it later logs everyone out. - With
DISABLE_REGISTRATION: 'true', Postiz allows exactly one signup and then closes the sign-up page. The first account becomes the organisation owner, so register yourself right after the first start. - The bundled file ships with example database passwords such as
postiz-password. They are only reachable on the internal Docker network, but changing them (in bothDATABASE_URLand thepostiz-postgresservice) before the first start costs you nothing.
Rather than keeping secrets in the Compose file, the docs also support a postiz.env file mounted under /config or a .env file next to the Compose file.
4. Put it behind your reverse proxy
The Postiz container serves frontend and backend together on port 5000; the Compose file maps it to 4007 on the host. If you already run Traefik with a Let's Encrypt resolver, you can drop the port mapping and add labels instead. The router, entrypoint and resolver names below are examples, so adjust them to your setup, and make sure the container shares a network with Traefik:
labels:
- "traefik.enable=true"
- "traefik.http.routers.postiz.rule=Host(`postiz.example.com`)"
- "traefik.http.routers.postiz.entrypoints=websecure"
- "traefik.http.routers.postiz.tls.certresolver=letsencrypt"
- "traefik.http.services.postiz.loadbalancer.server.port=5000"
The Temporal UI is bound to 127.0.0.1:8080 in the official file. Leave it that way, or put it behind authentication if you ever expose it.
5. Start the stack
docker compose up -d
docker compose logs -f postiz
The first start takes a while: Elasticsearch and Temporal need to become healthy first, and the Postiz health check has a 120-second start period. When the logs settle, open your URL, register the owner account and click Add Channel.
6. Connect your first channel
For a quick test, connect Bluesky or Mastodon. For Mastodon, set MASTODON_URL to your instance and add the client ID and secret of an app you created there. For X, LinkedIn, Reddit, YouTube and the others, follow the provider guides and fill in the matching variables, such as LINKEDIN_CLIENT_ID and LINKEDIN_CLIENT_SECRET.
When you change variables, recreate the containers:
docker compose down && docker compose up -d
Configuration tips
- Email. Without an email provider, Postiz auto-activates new users. For notifications, use Resend (
RESEND_API_KEY) or your own SMTP server withEMAIL_PROVIDER=nodemailerplusEMAIL_HOST,EMAIL_PORT,EMAIL_USER,EMAIL_PASSandEMAIL_SECURE. - Single sign-on. The Compose file contains commented-out
POSTIZ_GENERIC_OAUTHsettings for OIDC providers such as Authentik. - Media storage. Uploads go to the
postiz-uploadsvolume by default (STORAGE_PROVIDER=local). Cloudflare R2 is supported if you want to offload media. - Egress. Postiz needs outbound HTTPS to every network you connect. A strict egress firewall will break OAuth.
- Never set
NOT_SECUREDin production. The configuration reference marks it as dev-only, because it disables security checks.
Updating and backups
Postiz's last three releases (v2.25.1, v2.25.2 and v2.25.3) each fixed security vulnerabilities, and the release notes recommend upgrading immediately. So subscribe to the GitHub releases and update regularly:
# bump the image tag in docker-compose.yaml first
docker compose pull
docker compose up -d
Read the release notes before larger jumps. Upgrading from versions older than v2.12.0 requires the Temporal migration described in the docs.
For backups, dump the Postiz database and keep a copy of the uploads volume:
docker exec postiz-postgres pg_dump -U postiz-user postiz-db-local > postiz-$(date +%F).sql
If you run that from cron, a dead man's switch like Healthchecks will tell you when it silently stops.
Limitations
- The stack is heavy for what it does from a user's point of view: eight containers, including Elasticsearch, for a scheduler.
- Platform approval is the real bottleneck. The software is free, but getting Meta or TikTok to approve your app is up to them.
- Many of the headline AI features need paid third-party API keys.
- Analytics depend on what each platform's API exposes to your app.
Conclusion
Postiz is one of the most complete open-source social media schedulers around, and the self-hosted edition gives you everything without limits. It is worth it if you post regularly to several networks, work in a small team, or want to automate posting through its API, n8n or RSS. If you only post to Mastodon and Bluesky now and then, the eight-container stack is probably more than you need.
Do you already schedule your posts with a self-hosted tool? Let us know what you use. And if you want a central place to link all your self-hosted tools, take a look at our guide to Homepage. For sharing the API secrets you create along the way, see Yopass.
Sources
- Postiz on GitHub (README, AGPL-3.0 license, releases)
- postiz-docker-compose (official Compose file)
- Postiz docs: Docker Compose install
- Postiz docs: System requirements
- Postiz docs: Self-host gotchas
- Postiz docs: Traefik reverse proxy
- Postiz docs: Schedule your first post
- Postiz v2.25.3 release notes