{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5657af30-cbe8-48e5-848f-54fb1cb12689",
    "slug": "postiz-social-media-scheduler",
    "name": "Postiz (Social Media Scheduler)",
    "description": "Self-hosted Buffer alternative: schedule to X, LinkedIn & 15+ platforms.",
    "url": "https://railway.com/deploy/postiz-social-media-scheduler",
    "upstream": {
      "image": "ghcr.io/gitroomhq/postiz-app:v2.21.10"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Postiz",
      "source": {
        "image": "ghcr.io/gitroomhq/postiz-app:v2.21.10"
      },
      "needs_volume": true,
      "volume_mount_path": "/uploads",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:7.4-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "temporal",
      "source": {
        "image": "temporalio/auto-setup:1.28.1"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory (inside the mounted volume).",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name used by Postiz.",
      "secret": false,
      "strategy": "default",
      "default": "postiz"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Full connection string consumed by the Postiz service over private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Postgres username for the Postiz database.",
      "secret": false,
      "strategy": "default",
      "default": "postiz"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated Postgres password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Postiz",
      "description": "Pins the internal backend to port 3000 (must match BACKEND_INTERNAL_URL). Railway injects PORT=8080 otherwise, which breaks boot. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "MAIN_URL",
      "service": "Postiz",
      "description": "Public URL of the Postiz app (auto-set from the generated Railway domain).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUN_CRON",
      "service": "Postiz",
      "description": "Run the scheduler worker in this container (required for scheduled posts).",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_LIMIT",
      "service": "Postiz",
      "description": "Public API rate limit (requests/hour).",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "REDIS_URL",
      "service": "Postiz",
      "description": "Redis connection string for queues and caching (private networking).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "IS_GENERAL",
      "service": "Postiz",
      "description": "Required for self-hosted Postiz.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "JWT_SECRET",
      "service": "Postiz",
      "description": "Auto-generated secret that signs login sessions. Never share it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NOT_SECURED",
      "service": "Postiz",
      "description": "Keep false - Railway serves HTTPS, so secure cookies work.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postiz",
      "description": "Postgres connection string (private networking).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Postiz",
      "description": "Frontend URL - must match MAIN_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "STORAGE_PROVIDER",
      "service": "Postiz",
      "description": "Store uploads on the attached volume.",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Postiz",
      "description": "Provide a value for TEMPORAL_ADDRESS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPLOAD_DIRECTORY",
      "service": "Postiz",
      "description": "Upload path - matches the mounted volume.",
      "secret": false,
      "strategy": "default",
      "default": "/uploads"
    },
    {
      "key": "BACKEND_INTERNAL_URL",
      "service": "Postiz",
      "description": "Internal backend URL (frontend and backend run in one container).",
      "secret": false,
      "strategy": "default",
      "default": "http://localhost:3000"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "Postiz",
      "description": "Set true after you create your account to block new signups.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NEXT_PUBLIC_BACKEND_URL",
      "service": "Postiz",
      "description": "Public API endpoint used by the browser.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY",
      "service": "Postiz",
      "description": "Public path for serving uploaded media.",
      "secret": false,
      "strategy": "default",
      "default": "/uploads"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection URL used by Postiz over private networking.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password (required by the custom start command).",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DB",
      "service": "temporal",
      "description": "Temporal persistence driver. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "postgres12"
    },
    {
      "key": "DB_PORT",
      "service": "temporal",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ENABLE_ES",
      "service": "temporal",
      "description": "Elasticsearch visibility off - keeps the stack small.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BIND_ON_IP",
      "service": "temporal",
      "description": "Required for Railway private networking. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal",
      "description": "Postgres password, wired automatically. Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "temporal",
      "description": "Reuses the bundled Postgres superuser. Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal",
      "description": "Postgres host over private networking. Do not change.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "TEMPORAL_BROADCAST_ADDRESS",
      "service": "temporal",
      "description": "Required with BIND_ON_IP=0.0.0.0. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "127.0.0.1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postiz-social-media-scheduler"
      }
    },
    "cli": "railway deploy --template postiz-social-media-scheduler",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5657af30-cbe8-48e5-848f-54fb1cb12689",
            "serializedConfig": {
              "services": {
                "18b4950a-9994-47dd-9087-8c489b27bd98": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "description": "Postgres data directory (inside the mounted volume).",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "description": "Database name used by Postiz.",
                      "defaultValue": "postiz"
                    },
                    "DATABASE_URL": {
                      "description": "Full connection string consumed by the Postiz service over private networking.",
                      "defaultValue": "postgresql://${{ POSTGRES_USER }}:${{ POSTGRES_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:5432/${{ POSTGRES_DB }}"
                    },
                    "POSTGRES_USER": {
                      "description": "Postgres username for the Postiz database.",
                      "defaultValue": "postiz"
                    },
                    "POSTGRES_PASSWORD": {
                      "description": "Auto-generated Postgres password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "18b4950a-9994-47dd-9087-8c489b27bd98": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "3c7d094f-2758-44ec-8666-f1f46a433b12": {
                  "icon": "https://devicons.railway.com/i/postiz.svg",
                  "name": "Postiz",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "ghcr.io/gitroomhq/postiz-app:v2.21.10"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Pins the internal backend to port 3000 (must match BACKEND_INTERNAL_URL). Railway injects PORT=8080 otherwise, which breaks boot. Do not change.",
                      "defaultValue": "3000"
                    },
                    "MAIN_URL": {
                      "description": "Public URL of the Postiz app (auto-set from the generated Railway domain).",
                      "defaultValue": "https://${{ RAILWAY_PUBLIC_DOMAIN }}"
                    },
                    "RUN_CRON": {
                      "description": "Run the scheduler worker in this container (required for scheduled posts).",
                      "defaultValue": "true"
                    },
                    "API_LIMIT": {
                      "description": "Public API rate limit (requests/hour).",
                      "defaultValue": "30"
                    },
                    "REDIS_URL": {
                      "description": "Redis connection string for queues and caching (private networking).",
                      "defaultValue": "${{ Redis.REDIS_URL }}"
                    },
                    "IS_GENERAL": {
                      "description": "Required for self-hosted Postiz.",
                      "defaultValue": "true"
                    },
                    "JWT_SECRET": {
                      "description": "Auto-generated secret that signs login sessions. Never share it.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "NOT_SECURED": {
                      "description": "Keep false - Railway serves HTTPS, so secure cookies work.",
                      "defaultValue": "false"
                    },
                    "DATABASE_URL": {
                      "description": "Postgres connection string (private networking).",
                      "defaultValue": "${{ Postgres.DATABASE_URL }}"
                    },
                    "FRONTEND_URL": {
                      "description": "Frontend URL - must match MAIN_URL.",
                      "defaultValue": "https://${{ RAILWAY_PUBLIC_DOMAIN }}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional - enables the AI copilot and AI image generation (platform.openai.com).",
                      "defaultValue": ""
                    },
                    "STORAGE_PROVIDER": {
                      "description": "Store uploads on the attached volume.",
                      "defaultValue": "local"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{ temporal.RAILWAY_PRIVATE_DOMAIN }}:7233"
                    },
                    "UPLOAD_DIRECTORY": {
                      "description": "Upload path - matches the mounted volume.",
                      "defaultValue": "/uploads"
                    },
                    "BACKEND_INTERNAL_URL": {
                      "description": "Internal backend URL (frontend and backend run in one container).",
                      "defaultValue": "http://localhost:3000"
                    },
                    "DISABLE_REGISTRATION": {
                      "description": "Set true after you create your account to block new signups.",
                      "defaultValue": "false"
                    },
                    "NEXT_PUBLIC_BACKEND_URL": {
                      "description": "Public API endpoint used by the browser.",
                      "defaultValue": "https://${{ RAILWAY_PUBLIC_DOMAIN }}/api"
                    },
                    "NEXT_PUBLIC_UPLOAD_STATIC_DIRECTORY": {
                      "description": "Public path for serving uploaded media.",
                      "defaultValue": "/uploads"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5000": {
                        "port": 5000
                      }
                    }
                  },
                  "volumeMounts": {
                    "3c7d094f-2758-44ec-8666-f1f46a433b12": {
                      "mountPath": "/uploads"
                    }
                  }
                },
                "b6154fcb-2575-44a4-b28b-fec44bbe0709": {
                  "icon": "https://devicons.railway.com/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "sh -c 'exec redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --dir /data --bind 0.0.0.0 ::'"
                  },
                  "source": {
                    "image": "redis:7.4-alpine"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "description": "Connection URL used by Postiz over private networking.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:6379"
                    },
                    "REDIS_PASSWORD": {
                      "description": "Auto-generated Redis password (required by the custom start command).",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b6154fcb-2575-44a4-b28b-fec44bbe0709": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "e6493eb4-054b-4e38-bb26-e70efd7fa69a": {
                  "name": "temporal",
                  "source": {
                    "image": "temporalio/auto-setup:1.28.1"
                  },
                  "variables": {
                    "DB": {
                      "description": "Temporal persistence driver. Do not change.",
                      "defaultValue": "postgres12"
                    },
                    "DB_PORT": {
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "ENABLE_ES": {
                      "description": "Elasticsearch visibility off - keeps the stack small.",
                      "defaultValue": "false"
                    },
                    "BIND_ON_IP": {
                      "description": "Required for Railway private networking. Do not change.",
                      "defaultValue": "0.0.0.0"
                    },
                    "POSTGRES_PWD": {
                      "description": "Postgres password, wired automatically. Do not change.",
                      "defaultValue": "${{ Postgres.POSTGRES_PASSWORD }}"
                    },
                    "POSTGRES_USER": {
                      "description": "Reuses the bundled Postgres superuser. Do not change.",
                      "defaultValue": "${{ Postgres.POSTGRES_USER }}"
                    },
                    "POSTGRES_SEEDS": {
                      "description": "Postgres host over private networking. Do not change.",
                      "defaultValue": "${{ Postgres.RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "TEMPORAL_BROADCAST_ADDRESS": {
                      "description": "Required with BIND_ON_IP=0.0.0.0. Do not change.",
                      "defaultValue": "127.0.0.1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:12:30.393Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_98c036b0a5d44e7c9372",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 161,
    "typical_build_seconds": 0,
    "typical_start_seconds": 71,
    "slowest_service": "Postiz"
  }
}
