{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a020a522-aacc-4d4f-8b98-8fde28c50535",
    "slug": "postiz-production",
    "name": "Postiz | Social Media Scheduler with Temporal (No Elasticsearch)",
    "description": "Schedule posts to 30+ social networks. Temporal, Postgres, Redis. v2.25.1",
    "url": "https://railway.com/deploy/postiz-production",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/postiz"
    }
  },
  "services": [
    {
      "name": "Postiz",
      "source": {
        "repo": "https://github.com/two-workspaces/postiz"
      },
      "needs_volume": true,
      "volume_mount_path": "/uploads",
      "http": true
    },
    {
      "name": "Temporal",
      "source": {
        "repo": "https://github.com/two-workspaces/temporal"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.10.2-alpine"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Postiz",
      "description": "Port nginx listens on inside the Postiz image - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MAIN_URL",
      "service": "Postiz",
      "description": "Public URL of this Postiz - change to your custom domain after adding one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "REDIS_URL",
      "service": "Postiz",
      "description": "Redis on the private network (family=0 lets ioredis use IPv6)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "JWT_SECRET",
      "service": "Postiz",
      "description": "Signs login sessions - auto-generated, keep it secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postiz",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FRONTEND_URL",
      "service": "Postiz",
      "description": "Same as MAIN_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TEMPORAL_ADDRESS",
      "service": "Postiz",
      "description": "Temporal frontend (gRPC) on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DISABLE_REGISTRATION",
      "service": "Postiz",
      "description": "true = only the first sign-up is allowed (that account owns the workspace); invite teammates from Settings. Set to false to open public sign-up",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "NEXT_PUBLIC_BACKEND_URL",
      "service": "Postiz",
      "description": "MAIN_URL followed by /api",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Postiz",
      "description": "First boot syncs the database schema and starts four processes",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "PORT",
      "service": "Temporal",
      "description": "Frontend HTTP API port, used by Railway's health check - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "7243"
    },
    {
      "key": "DB_PORT",
      "service": "Temporal",
      "description": "Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_PWD",
      "service": "Temporal",
      "description": "Postgres password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Temporal",
      "description": "Postgres user (creates the temporal and temporal_visibility databases)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_SEEDS",
      "service": "Temporal",
      "description": "Postgres host on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DEFAULT_NAMESPACE",
      "service": "Temporal",
      "description": "Namespace Postiz uses (created on first boot)",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "NUM_HISTORY_SHARDS",
      "service": "Temporal",
      "description": "History shards. Fixed on first boot and can never change; 4 is plenty for a scheduler",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Temporal",
      "description": "Every deploy runs the schema migrations before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name (Temporal adds temporal and temporal_visibility next to it)",
      "secret": false,
      "strategy": "default",
      "default": "postiz"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "postiz"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postiz-production"
      }
    },
    "cli": "railway deploy --template postiz-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a020a522-aacc-4d4f-8b98-8fde28c50535",
            "serializedConfig": {
              "services": {
                "52940487-c213-4e86-86b3-8bc63a6632bf": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/postiz/main/icon.svg",
                  "name": "Postiz",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/postiz",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port nginx listens on inside the Postiz image - leave as is",
                      "defaultValue": "5000"
                    },
                    "MAIN_URL": {
                      "isOptional": false,
                      "description": "Public URL of this Postiz - change to your custom domain after adding one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis on the private network (family=0 lets ioredis use IPv6)",
                      "defaultValue": "redis://default:${{Redis.REDIS_PASSWORD}}@${{Redis.RAILWAY_PRIVATE_DOMAIN}}:6379?family=0"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signs login sessions - auto-generated, keep it secret",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "FRONTEND_URL": {
                      "isOptional": false,
                      "description": "Same as MAIN_URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: enables the AI writer, image generation and agent features",
                      "defaultValue": ""
                    },
                    "TEMPORAL_ADDRESS": {
                      "isOptional": false,
                      "description": "Temporal frontend (gRPC) on the private network",
                      "defaultValue": "${{Temporal.RAILWAY_PRIVATE_DOMAIN}}:7233"
                    },
                    "DISABLE_REGISTRATION": {
                      "isOptional": false,
                      "description": "true = only the first sign-up is allowed (that account owns the workspace); invite teammates from Settings. Set to false to open public sign-up",
                      "defaultValue": "true"
                    },
                    "NEXT_PUBLIC_BACKEND_URL": {
                      "isOptional": false,
                      "description": "MAIN_URL followed by /api",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot syncs the database schema and starts four processes",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f4d0ff65-399f-4025-8cbd-07312da2259c": {
                      "mountPath": "/uploads"
                    }
                  }
                },
                "6d733be5-7665-4c27-bd24-d7e2ca2076bd": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/temporal/main/icon.svg",
                  "name": "Temporal",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v1/system-info",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/temporal",
                    "rootDirectory": "/server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Frontend HTTP API port, used by Railway's health check - leave as is",
                      "defaultValue": "7243"
                    },
                    "DB_PORT": {
                      "isOptional": false,
                      "description": "Postgres port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_PWD": {
                      "isOptional": false,
                      "description": "Postgres password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Postgres user (creates the temporal and temporal_visibility databases)",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "POSTGRES_SEEDS": {
                      "isOptional": false,
                      "description": "Postgres host on the private network",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DEFAULT_NAMESPACE": {
                      "isOptional": false,
                      "description": "Namespace Postiz uses (created on first boot)",
                      "defaultValue": "default"
                    },
                    "NUM_HISTORY_SHARDS": {
                      "isOptional": false,
                      "description": "History shards. Fixed on first boot and can never change; 4 is plenty for a scheduler",
                      "defaultValue": "4"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Every deploy runs the schema migrations before the health check can pass",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                },
                "940da473-6cfb-40eb-a9f5-2df427c808d5": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name (Temporal adds temporal and temporal_visibility next to it)",
                      "defaultValue": "postiz"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "postiz"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "1d2ae1c5-1960-44ea-9fe3-2ca3152906c2": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "bb56af91-5d9c-49ef-9e69-ce544acc3f0b": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "startCommand": "/bin/sh -c \"exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.10.2-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Postiz",
      "method": "GET",
      "path": "/api/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-23T22:14:47.579Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-19T13:33:48.141Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0957a0072f0040d0b735",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 341,
    "typical_build_seconds": 233,
    "typical_start_seconds": 91,
    "slowest_service": "Postiz"
  }
}
