{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4474f14d-6583-449e-8fd4-700110102cdf",
    "slug": "postgres-ha-read-replica",
    "name": "Postgres HA Read Replica",
    "description": "Highly available PostgreSQL with automated failover and a read replica.",
    "url": "https://railway.com/deploy/postgres-ha-read-replica"
  },
  "services": [
    {
      "name": "pgaf-replica",
      "source": {
        "image": "wotonews/postgres-ha:v0.1.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "pgaf-primary",
      "source": {
        "image": "wotonews/postgres-ha:v0.1.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "pgaf-monitor",
      "source": {
        "image": "wotonews/postgres-ha:v0.1.5"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgres-ha-read-replica"
      }
    },
    "cli": "railway deploy --template postgres-ha-read-replica",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4474f14d-6583-449e-8fd4-700110102cdf",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "77c1e0ea-3e9f-4132-98bb-39c617ab8553": {
                  "icon": null,
                  "name": "pgaf-replica",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/postgres-ha:v0.1.5"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "77c1e0ea-3e9f-4132-98bb-39c617ab8553": {
                      "mountPath": "/data"
                    }
                  }
                },
                "b02046c5-712c-4f04-be7a-73ba57864544": {
                  "icon": null,
                  "name": "pgaf-primary",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/postgres-ha:v0.1.5"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "b02046c5-712c-4f04-be7a-73ba57864544": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ef109dfc-ff65-4f0b-ac10-068eb1c5fb32": {
                  "icon": null,
                  "name": "pgaf-monitor",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/postgres-ha:v0.1.5"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "ef109dfc-ff65-4f0b-ac10-068eb1c5fb32": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:20:49.350Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d7b6b55062714f20a57a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 53,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "pgaf-monitor"
  }
}
