{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ee042bd6-4340-4b7a-a54a-bb818d566d4a",
    "slug": "workflow-web",
    "name": "workflow-web",
    "description": "Vercel's Postgres World with UI dashboard",
    "url": "https://railway.com/deploy/workflow-web"
  },
  "services": [
    {
      "name": "pg-world",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "workflow-web-ui",
      "source": {
        "repo": "https://github.com/dotlouis/workflow-web"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "pg-world",
      "description": "Provided by railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGHOST",
      "service": "pg-world",
      "description": "Provided by railway",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPASSWORD",
      "service": "pg-world",
      "description": "Auto-copied from POSTGRES_PASSWORD",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "pg-world",
      "description": "DSN to connect to the DB (auto-generated by default)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pg-world",
      "description": "DB password (auto-generated by default)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WORKFLOW_POSTGRES_URL",
      "service": "workflow-web-ui",
      "description": "Connect using the pg-world DSN",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "workflow-web"
      }
    },
    "cli": "railway deploy --template workflow-web",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ee042bd6-4340-4b7a-a54a-bb818d566d4a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1e2092bb-21a7-4749-8fbc-d86498960701": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "pg-world",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": true,
                      "description": "Provided by railway",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": true,
                      "description": "Provided by railway",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "description": "Auto-copied from POSTGRES_PASSWORD",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "DSN to connect to the DB (auto-generated by default)",
                      "defaultValue": "postgresql://postgres:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "DB password (auto-generated by default)",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "1e2092bb-21a7-4749-8fbc-d86498960701": {
                      "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."
                  }
                },
                "f46a5f2b-afe5-4e6f-96c9-791f0b0998df": {
                  "icon": "https://devicons.railway.com/i/nextjs-dark.svg",
                  "name": "workflow-web-ui",
                  "deploy": {
                    "startCommand": "sh -c \"PORT=3456 node node_modules/@workflow/web/server.js\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/dotlouis/workflow-web",
                    "rootDirectory": null
                  },
                  "variables": {
                    "WORKFLOW_POSTGRES_URL": {
                      "isOptional": true,
                      "description": "Connect using the pg-world DSN",
                      "defaultValue": "${{pg-world.DATABASE_URL}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T01:43:16.346Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7897b5ec121d4e4ba7aa",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 51,
    "typical_start_seconds": 10,
    "slowest_service": "workflow-web-ui"
  }
}
