{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4ed86b63-3f63-41d6-88c8-ae3be76a5033",
    "slug": "postgres-ha-oct-26",
    "name": "Postgres HA [Oct '26]",
    "description": "Self-healing PostgreSQL 18: automated failover + read replica. [Oct '26]",
    "url": "https://railway.com/deploy/postgres-ha-oct-26"
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "pgaf-replica",
      "source": {
        "image": "wotonews/postgres-ha:v0.3.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "pgaf-primary",
      "source": {
        "image": "wotonews/postgres-ha:v0.3.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "pgadmin",
      "source": {
        "image": "wotonews/pgadmin-ha:v9.18-2"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/pgadmin",
      "http": false
    },
    {
      "name": "pgaf-monitor",
      "source": {
        "image": "wotonews/postgres-ha:v0.3.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGADMIN_SERVER_1_HOST",
      "service": "pgadmin",
      "description": "Provide a value for PGADMIN_SERVER_1_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGADMIN_SERVER_2_HOST",
      "service": "pgadmin",
      "description": "Provide a value for PGADMIN_SERVER_2_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGADMIN_DEFAULT_PASSWORD",
      "service": "pgadmin",
      "description": "Provide a value for PGADMIN_DEFAULT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgres-ha-oct-26"
      }
    },
    "cli": "railway deploy --template postgres-ha-oct-26",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4ed86b63-3f63-41d6-88c8-ae3be76a5033",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "18cf94b4-b5e1-4f8b-a003-5e693abc64b2": {
                  "icon": null,
                  "name": "pgaf-replica",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/postgres-ha:v0.3.0"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "18cf94b4-b5e1-4f8b-a003-5e693abc64b2": {
                      "mountPath": "/data"
                    }
                  }
                },
                "ac85b85d-915b-42f4-884d-7e7773178804": {
                  "icon": null,
                  "name": "pgaf-primary",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/postgres-ha:v0.3.0"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "ac85b85d-915b-42f4-884d-7e7773178804": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c8a969ec-083d-43ed-9a53-e67d3e506342": {
                  "icon": null,
                  "name": "pgadmin",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/pgadmin-ha:v9.18-2"
                  },
                  "variables": {
                    "PGADMIN_SERVER_1_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{pgaf-primary.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGADMIN_SERVER_2_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{pgaf-replica.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGADMIN_DEFAULT_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{PGADMIN_DEFAULT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "c8a969ec-083d-43ed-9a53-e67d3e506342": {
                      "mountPath": "/var/lib/pgadmin"
                    }
                  }
                },
                "f786daad-1f9e-4637-b919-5fbb69e29d02": {
                  "icon": null,
                  "name": "pgaf-monitor",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "wotonews/postgres-ha:v0.3.0"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "f786daad-1f9e-4637-b919-5fbb69e29d02": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T10:14:56.137Z",
  "generator_version": "0.1.0"
}
