# Install Postiz: Free Open-Source Social Media Scheduler

> Step-by-step guide to self-hosting Postiz with Docker, Caddy, and DNS, then connecting social accounts, scheduling posts, and using the API with n8n.

By Jonathan Ben Haim. Updated 2026-11-29. Source: https://jonathanai.io/blog/install-postiz-self-hosted-docker

Buffer costs $18-120 per month, and Hootsuite costs $99-$249 per 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.

**In short:** Postiz is a free, open-source social media scheduler that you can [self-host on your own server](/blog/turn-old-pc-home-server-local-ai). It supports 30+ platforms, includes AI content generation, and can replace paid tools like Buffer and Hootsuite. This guide walks through the full Docker install, step by step.

## Key takeaways

- Postiz is free and open-source, and it supports 30+ social media platforms.
- You can install Postiz with Docker Compose on a VPS, or locally with Docker Desktop.
- Use v2.11.3 for a straightforward self-hosted setup, because v2.12+ requires Temporal.
- Each social platform needs its own OAuth app and credentials.
- The guide estimates the server cost at about $5-10 per month, compared with $18-120 for Buffer and $99-$249 for Hootsuite.
- Railway offers one-click deployment with no server setup, at $5-10 per month for the three-service stack.

## What is Postiz and why use it?

Postiz is a free, open-source social media scheduler that you can host yourself. It 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](/blog/ai-infrastructure-stack-single-server) and do not pay a separate scheduling subscription.

Postiz is more than a scheduler. It includes:

- **AI content generation**: a [built-in AI assistant](/blog/jarvis-os-personal-ai-assistant-guide) for drafting posts
- **Visual content editor**: a Canva-like design interface
- **Content calendar**: drag-and-drop scheduling
- **Team collaboration**: multiple users and approval workflows
- **Analytics dashboard**
- **[n8n / Make.com API integration](/blog/n8n-mcp-skills-claude-guide)**: for automation workflows
- **[MCP support](/blog/turn-any-api-into-mcp-server)**: connects [AI agents](/blog/ai-agents-you-can-build-today) directly to your posting workflow

For a serious content creator or agency, Postiz is a legitimate production tool. It has a 4.8/5 rating on G2 from 51 reviews.

## What do you need before you install Postiz?

You need a server or VPS running Ubuntu/Debian, or Docker Desktop locally. You also need Docker and Docker Compose, a domain or subdomain for your Postiz instance, and OAuth credentials for each social platform you want to connect. The guide says the setup takes about 30 minutes.

- 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

## What services make up Postiz?

Postiz runs three services together with Docker Compose. The app is the Next.js frontend and API. PostgreSQL stores posts, accounts, and analytics. Redis handles the 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.

## How do you prepare your server?

Connect to your server over SSH, update the system, and install Docker and the Docker Compose plugin. Then create a directory for Postiz.

1. SSH into your server and update the system:

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

2. Install Docker:

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

3. Install the Docker Compose plugin:

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

4. Create a directory for Postiz:

```bash
mkdir -p /opt/postiz
cd /opt/postiz
```

## How do you create the Docker Compose file?

Create a file named docker-compose.yml in /opt/postiz and paste in the configuration below. It defines the postiz app, postgres, redis, and caddy services, along with a shared network and volumes.

```bash
nano /opt/postiz/docker-compose.yml
```

```yaml
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:
```

## How do you create the environment file?

Create a .env file in /opt/postiz that holds your domain and two secret values. Generate the secrets with openssl, then lock down the file's permissions.

```bash
nano /opt/postiz/.env
```

```bash
# 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:

```bash
openssl rand -hex 32  # Run twice, once for JWT_SECRET and once for POSTGRES_PASSWORD
```

Protect the file:

```bash
chmod 600 /opt/postiz/.env
```

## How do you configure the reverse proxy?

Create a Caddyfile that routes /api requests to the backend on port 3000 and all other requests to the frontend on port 4200. Replace the placeholder domain with your actual domain.

```bash
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.

## How do you configure DNS?

In your DNS provider, create an A record that points your subdomain to your server's IP address.

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

## How do you start Postiz?

Run docker compose up -d from the /opt/postiz directory, then watch the logs until the services are healthy. Once they are, open your domain in a browser.

```bash
cd /opt/postiz
docker compose up -d
