{
  "manifest_version": "1.0.0",
  "template": {
    "id": "964bbfcc-d5c1-4a18-b854-76647596d37c",
    "slug": "pgrust",
    "name": "pgrust",
    "description": "Postgres rewritten in Rust, now passing 100% Postgres regression tests",
    "url": "https://railway.com/deploy/pgrust",
    "upstream": {
      "image": "malisper/pgrust:latest"
    }
  },
  "services": [
    {
      "name": "pgrust",
      "source": {
        "image": "malisper/pgrust:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "pgrust",
      "description": "Persistent directory where pgrust stores the database files",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgrust"
    },
    {
      "key": "PGHOST",
      "service": "pgrust",
      "description": "Private Railway hostname used by other services in the same project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "pgrust",
      "description": "Internal PostgreSQL port used by pgrust",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "pgrust",
      "description": "PostgreSQL username used by client applications",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "pgrust",
      "description": "Default database name used by client applications",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "pgrust",
      "description": "PostgreSQL password exposed to client applications",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgrust",
      "description": "Database created automatically during the first initialization",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DATABASE_URL",
      "service": "pgrust",
      "description": "Complete private PostgreSQL connection URL for applications",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgrust",
      "description": "PostgreSQL superuser created during the first initialization",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgrust",
      "description": "Random 32-character password generated by Railway during deployment",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pgrust"
      }
    },
    "cli": "railway deploy --template pgrust",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "964bbfcc-d5c1-4a18-b854-76647596d37c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "02305653-5c10-46f6-9f9a-129d3c8b5328": {
                  "icon": "https://devicons.railway.com/i/rust-light.svg",
                  "name": "pgrust",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "malisper/pgrust:latest"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Persistent directory where pgrust stores the database files",
                      "defaultValue": "/var/lib/postgresql/data/pgrust"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private Railway hostname used by other services in the same project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL port used by pgrust",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "PostgreSQL username used by client applications",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default database name used by client applications",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "PostgreSQL password exposed to client applications",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created automatically during the first initialization",
                      "defaultValue": "postgres"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Complete private PostgreSQL connection URL for applications",
                      "defaultValue": "postgresql://${{POSTGRES_USER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{POSTGRES_DB}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser created during the first initialization",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Random 32-character password generated by Railway during deployment",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "02305653-5c10-46f6-9f9a-129d3c8b5328": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T01:44:17.379Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_520c05581f6c4d5d9077",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 31,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "pgrust"
  }
}
