{
  "manifest_version": "1.0.0",
  "template": {
    "id": "09d8b0fc-78b1-427f-8712-9ec7b01d6d5a",
    "slug": "postiz-or-just-updated-buffer-alternativ",
    "name": "Postiz | (Just Updated) Buffer Alternative, Admin Seeded and API Actually Works",
    "description": "Self-hosted social scheduler. Admin seeded, API works, media persists",
    "url": "https://railway.com/deploy/postiz-or-just-updated-buffer-alternativ",
    "upstream": {
      "image": "ghcr.io/bon5co/postiz-railway:2.23.0"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.10-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "elasticsearch",
      "source": {
        "image": "ghcr.io/bon5co/postiz-railway-elasticsearch:7.17.27"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/share/elasticsearch/data",
      "http": false
    },
    {
      "name": "redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "postiz",
      "source": {
        "image": "ghcr.io/bon5co/postiz-railway:2.23.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/uploads",
      "http": true
    },
    {
      "name": "temporaldb",
      "source": {
        "image": "postgres:17.10-trixie"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "temporal",
      "source": {
        "image": "ghcr.io/bon5co/postiz-railway-temporal:1.28.1"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MAIN_URL",
      "service": "postiz",
      "description": "Provide a value for MAIN_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "postiz",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "JWT_SECRET",
      "service": "postiz",
      "description": "Provide a value for JWT_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "postiz",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "postiz",
      "description": "Provide a value for FRONTEND_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "postiz",
      "description": "Provide a value for TEMPORAL_ADDRESS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTIZ_ADMIN_PASSWORD",
      "service": "postiz",
      "description": "Provide a value for POSTIZ_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "NEXT_PUBLIC_BACKEND_URL",
      "service": "postiz",
      "description": "Provide a value for NEXT_PUBLIC_BACKEND_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "temporaldb",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ES_SEEDS",
      "service": "temporal",
      "description": "Provide a value for ES_SEEDS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "temporal",
      "description": "Provide a value for POSTGRES_PWD.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "temporal",
      "description": "Provide a value for POSTGRES_SEEDS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postiz-or-just-updated-buffer-alternativ"
      }
    },
    "cli": "railway deploy --template postiz-or-just-updated-buffer-alternativ",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "09d8b0fc-78b1-427f-8712-9ec7b01d6d5a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0677b53e-364e-4af1-804e-aaf7a6e91cb3": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.10-trixie"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "0677b53e-364e-4af1-804e-aaf7a6e91cb3": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "5610243f-70ad-4943-bc80-aed0bd2857fa": {
                  "icon": null,
                  "name": "elasticsearch",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/postiz-railway-elasticsearch:7.17.27"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "5610243f-70ad-4943-bc80-aed0bd2857fa": {
                      "mountPath": "/usr/share/elasticsearch/data"
                    }
                  }
                },
                "757f2997-ad2e-46d7-a885-30c9f1afb1ef": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'rm -rf /data/lost+found && chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --dir /data'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "757f2997-ad2e-46d7-a885-30c9f1afb1ef": {
                      "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."
                  }
                },
                "8147bc53-9488-4ef2-a7f7-0d60c438259d": {
                  "icon": null,
                  "name": "postiz",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/postiz-railway:2.23.0"
                  },
                  "variables": {
                    "MAIN_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "defaultValue": "postgresql://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "defaultValue": "${{temporal.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "POSTIZ_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTIZ_ADMIN_PASSWORD}}"
                    },
                    "NEXT_PUBLIC_BACKEND_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "8147bc53-9488-4ef2-a7f7-0d60c438259d": {
                      "mountPath": "/uploads"
                    }
                  }
                },
                "84d2b366-9442-4f61-a2a2-09a1782f31b1": {
                  "icon": null,
                  "name": "temporaldb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.10-trixie"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "84d2b366-9442-4f61-a2a2-09a1782f31b1": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "95d8ca11-4263-46a5-932e-9bf38474021e": {
                  "icon": null,
                  "name": "temporal",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/postiz-railway-temporal:1.28.1"
                  },
                  "variables": {
                    "ES_SEEDS": {
                      "isOptional": false,
                      "defaultValue": "${{elasticsearch.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "defaultValue": "${{temporaldb.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "defaultValue": "${{temporaldb.RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "postiz",
      "method": "GET",
      "path": "/api/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T22:14:40.433Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T19:50:00.178Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4b1a126f878246049f37",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 162,
    "typical_build_seconds": 0,
    "typical_start_seconds": 82,
    "slowest_service": "postiz"
  }
}
