Install Postiz: Free Open-Source Social Media Scheduler (2026 Guide)

מאת · · 18 min read

Last updated:

Install Postiz: Free Open-Source Social Media Scheduler (2026 Guide)

Postiz is a free, open-source social media scheduler you can self-host on your own server. It supports 30+ platforms, includes AI content generation, and replaces paid tools like Buffer and Hootsuite. This guide walks through the full Docker install, step by step.

Why Postiz Is Going Viral in the Creator Economy

Buffer costs $18-120/month. Hootsuite costs $99-$249/month. Both limit how many social accounts you can connect, how many posts you can schedule, and how much AI-generated content you can create.

Postiz is free, open-source, and supports 30+ social media platforms — including X, Instagram, LinkedIn, Facebook, Reddit, Threads, Mastodon, Bluesky, TikTok, YouTube, and more. You install it once on a $5 VPS and never pay another social media scheduling subscription.

It's also not just a scheduler. Postiz includes: - AI content generation (built-in AI assistant for drafting posts) - Visual content editor (Canva-like design interface) - Content calendar with drag-and-drop scheduling - Team collaboration (multiple users, approval workflows) - Analytics dashboard - n8n / Make.com API integration for automation workflows - MCP support to connect AI agents directly to your posting workflow

For The Lazy Leader-style content operations — or any serious content creator or agency — Postiz is a legitimate production tool. 4.8/5 on G2 with 51 reviews.


What You'll Need

  • A server or VPS running Ubuntu/Debian (Hetzner, DigitalOcean, etc.) or Docker Desktop locally
  • Docker and Docker Compose installed
  • A domain or subdomain for your Postiz instance
  • OAuth credentials for each social platform you want to connect (covered below)
  • About 30 minutes

Alternatively: Deploy to Railway with one click (no server setup required). More on that option at the end.


Understanding Postiz's Architecture

Postiz consists of three services that run together via Docker Compose:

  1. App — The Next.js frontend and API
  2. PostgreSQL — Database for posts, accounts, analytics
  3. Redis — Queue and caching layer

Version note: Postiz v2.12+ requires Temporal (a workflow orchestration engine) which adds complexity. For a straightforward self-hosted deployment, use v2.11.3 — the last fully functional release without Temporal. This guide uses that version.


Step 1: Prepare Your Server

SSH into your server and update the system:

ssh root@YOUR_SERVER_IP
apt update && apt upgrade -y

Install Docker:

curl -fsSL https://get.docker.com | sh

Install Docker Compose plugin:

apt install docker-compose-plugin -y
docker compose version  # Verify installation

Create a directory for Postiz:

mkdir -p /opt/postiz
cd /opt/postiz

Step 2: Create the Docker Compose File

nano /opt/postiz/docker-compose.yml

Paste this configuration:

version: '3.8'

services:
  postiz:
    image: ghcr.io/gitroomhq/postiz-app:v2.11.3
    container_name: postiz
    restart: unless-stopped
    environment:
      MAIN_URL: "https://postiz.yourdomain.com"
      FRONTEND_URL: "https://postiz.yourdomain.com"
      NEXT_PUBLIC_BACKEND_URL: "https://postiz.yourdomain.com/api"
      JWT_SECRET: "${JWT_SECRET}"
      DATABASE_URL: "postgresql://postiz:${POSTGRES_PASSWORD}@postgres:5432/postiz"
      REDIS_URL: "redis://redis:6379"
      BACKEND_INTERNAL_URL: "http://localhost:3000"
      IS_GENERAL: "true"
      STORAGE_PROVIDER: "local"
      UPLOAD_DIRECTORY: "/uploads"
      NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY: "/uploads"
      DISABLE_REGISTRATION: "false"
    volumes:
      - ./uploads:/uploads
    ports:
      - "4200:4200"
      - "3000:3000"
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy
    networks:
      - postiz-network

  postgres:
    image: postgres:16-alpine
    container_name: postiz-postgres
    restart: unless-stopped
    environment:
      POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
      POSTGRES_USER: postiz
      POSTGRES_DB: postiz
    volumes:
      - ./postgres:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U postiz"]
      interval: 10s
      timeout: 5s
      retries: 5
    networks:
      - postiz-network

  redis:
    image: redis:7-alpine
    container_name: postiz-redis
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5
    networks:
      - postiz-network

  caddy:
    image: caddy:2-alpine
    container_name: postiz-caddy
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
      - caddy_config:/config
    networks:
      - postiz-network

networks:
  postiz-network:
    driver: bridge

volumes:
  caddy_data:
  caddy_config:

Step 3: Create the Environment File

nano /opt/postiz/.env
# Your domain
MAIN_DOMAIN=postiz.yourdomain.com

# Generate a strong JWT secret
JWT_SECRET=your-jwt-secret-here

# Generate a strong PostgreSQL password
POSTGRES_PASSWORD=your-postgres-password-here

Generate secure values:

openssl rand -hex 32  # Run twice — once for JWT_SECRET, once for POSTGRES_PASSWORD

Protect the file:

chmod 600 /opt/postiz/.env

Step 4: Configure the Reverse Proxy

nano /opt/postiz/Caddyfile
postiz.yourdomain.com {
    handle /api/* {
        reverse_proxy postiz:3000
    }
    handle {
        reverse_proxy postiz:4200
    }
}

Replace postiz.yourdomain.com with your actual domain.


Step 5: Configure DNS

In your DNS provider, create an A record:

Type: A
Name: postiz
Value: YOUR_SERVER_IP
TTL: 300

Step 6: Start Postiz

cd /opt/postiz
docker compose up -d

Watch the logs until everything is healthy:

docker compose logs -f

Wait for: - postiz-postgres shows ready to accept connections - postiz-redis shows Ready to accept connections - postiz shows the Next.js app starting

Open your browser at https://postiz.yourdomain.com.


Step 7: First Login and Security Setup

Create your admin account:

When you first open Postiz, you'll see a registration form. This first account becomes the admin account.

Fill in your details and register.

Immediately after registering, disable new registrations (unless you're running Postiz for a team):

In your .env file, change:

DISABLE_REGISTRATION: "true"

Then restart the app service:

docker compose restart postiz

Step 8: Connect Your Social Media Platforms

This is the most involved part — each platform requires creating an OAuth app through their developer portal.

Connecting X (Twitter)

  1. Go to developer.twitter.com
  2. Create a new project and app
  3. Set the callback URL to: https://postiz.yourdomain.com/integrations/social/X
  4. Copy the Consumer Key and Consumer Secret
  5. In Postiz: Settings → Providers → X → enter your keys

Connecting LinkedIn

  1. Go to linkedin.com/developers
  2. Create a new app
  3. Under Auth, add the redirect URL: https://postiz.yourdomain.com/integrations/social/LINKEDIN
  4. Request the necessary permissions (r_liteprofile, r_emailaddress, w_member_social)
  5. Copy the Client ID and Client Secret
  6. In Postiz: Settings → Providers → LinkedIn → enter your keys

Connecting Instagram

Instagram requires a Meta Business Account and Facebook App: 1. Go to developers.facebook.com 2. Create a new app (Business type) 3. Add the Instagram product 4. Set redirect URI: https://postiz.yourdomain.com/integrations/social/INSTAGRAM 5. Copy the App ID and App Secret 6. In Postiz: Settings → Providers → Instagram → enter your keys

Other Platforms

The process is similar for all platforms: create an OAuth app in that platform's developer portal, add your Postiz redirect URL, copy the credentials into Postiz Settings → Providers.

Postiz supports: X, Instagram, LinkedIn, Facebook, Reddit, Threads, Mastodon, Bluesky, TikTok, YouTube, Discord, Slack, Pinterest, and more.


Step 9: Create and Schedule Your First Post

1. Click + Create Post from the dashboard 2. Choose which platforms to post to (can be multiple simultaneously) 3. Write your post content 4. Use the AI assistant to help generate or improve content: - Click the AI icon - Describe what you want: "Write a LinkedIn post about the benefits of automation for marketing teams" - AI generates draft content you can edit 5. Add media if needed (image upload or use the built-in design editor) 6. Set your schedule: - Publish now - Schedule: Pick date and time - Add to queue: Fills next available slot in your posting schedule 7. Click Schedule or Publish


Integrating Postiz with n8n

This is where Postiz gets truly powerful for automation-focused builders.

Postiz has a REST API that lets n8n trigger post creation:

POST https://postiz.yourdomain.com/api/posts
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "type": "post",
  "date": "2025-12-15T09:00:00Z",
  "shortLink": false,
  "posts": [
    {
      "id": "YOUR_INTEGRATION_ID",
      "content": "Your post content here"
    }
  ]
}

Get your API key: Settings → API Keys → Generate New Key

Get your integration ID: Settings → Providers → click on connected account → copy the ID

n8n workflow idea: 1. AI agent generates weekly content ideas 2. n8n formats each idea as a Postiz API call 3. Postiz schedules all posts for the week 4. You review the calendar on Sunday and adjust as needed

Full automation pipeline:

Content idea source (RSS/newsletter/AI) → n8n → AI content generation → Postiz → Scheduled posts across 30+ platforms

Benefits of Self-Hosting Postiz vs. Using Buffer/Hootsuite

FactorPostiz (self-hosted)BufferHootsuite
Monthly cost~$5-10 (server only)$18-120$99-249
Social accountsUnlimited3-1010-50
UsersUnlimited1-101-5
Post schedulingUnlimitedLimitedLimited
AI content generationBuilt-inAdd-on costAdd-on cost
API accessFullLimitedLimited
n8n/automation integrationYesZapier onlyZapier/API
Data ownership100% yoursTheirsTheirs
Platforms30+835+

The math over 12 months: - Buffer Essentials: $216/year - Hootsuite Professional: $1,188/year - Postiz on Hetzner: ~$60/year (server only)

For a solo creator or agency, self-hosting Postiz is an easy decision.


Railway: One-Click Deployment (No Server Required)

If Docker feels like too much complexity, Railway offers a one-click Postiz deployment:

  1. Go to railway.com
  2. Search for "Postiz" in the template marketplace
  3. Click Deploy Now
  4. Railway provisions the app, PostgreSQL, and Redis automatically
  5. Configure your domain in Railway's settings

Cost on Railway: $5-10/month for the three-service stack (app + PostgreSQL + Redis) — still dramatically cheaper than Buffer or Hootsuite.

Note: Use version 2.11.3 template specifically. The v2.12+ template requires Temporal and is more complex.


Troubleshooting

Posts aren't publishing: - Check the integration is still connected: Settings → Providers - OAuth tokens expire — re-authenticate the platform connection - Check Docker logs: docker compose logs postiz --tail=50

Can't connect a social platform: - Verify your redirect URL matches exactly (including https://) - Some platforms (Instagram, TikTok) require app review for public use — for personal use, developer mode usually works

Database errors:

docker compose restart postgres
docker compose restart postiz

Using Postiz With The Lazy Leader Content Operation

For a solo content creator producing content for The Lazy Leader (or any multi-platform personal brand):

The workflow: 1. Weekly content planning session → produce ideas list 2. AI (Hermes agent or Claude) drafts all posts from the ideas 3. n8n sends drafts to Postiz API with scheduled times 4. Postiz publishes to LinkedIn, X, Instagram, Threads automatically 5. Analytics dashboard shows what performed

This turns a manual daily task into a weekly batch process.


Part of The Lazy Leader guide series on self-hosted AI infrastructure. Subscribe for automation workflows and tool guides.