{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7d67cc5c-08d5-4d17-9bce-5f0c6d2fd859",
    "slug": "0c4k7A",
    "name": "PostgreSQL with PostGIS and H3",
    "description": "Postgres image supporting PostGIS and Uber's H3 extensions.",
    "url": "https://railway.com/deploy/0c4k7A",
    "upstream": {
      "image": "chikeozulumba/postgres-postgis-h3"
    }
  },
  "services": [
    {
      "name": "chikeozulumba/postgres-postgis-h3",
      "source": {
        "image": "chikeozulumba/postgres-postgis-h3"
      },
      "needs_volume": false,
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGHOST",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for PGHOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PGPORT",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for PGPORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for PGUSER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for PGDATABASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for PGPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "postgres-h3-db"
    },
    {
      "key": "DATABASE_URL",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for DATABASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "chikeozulumba/postgres-postgis-h3",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "postgres"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "0c4k7A"
      }
    },
    "cli": "railway deploy --template 0c4k7A",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7d67cc5c-08d5-4d17-9bce-5f0c6d2fd859",
            "serializedConfig": {
              "services": {
                "9f878595-129e-4870-9e96-c9936e760f5a": {
                  "name": "chikeozulumba/postgres-postgis-h3",
                  "source": {
                    "image": "chikeozulumba/postgres-postgis-h3"
                  },
                  "variables": {
                    "PGHOST": {
                      "isOptional": true,
                      "defaultValue": "0.0.0.0"
                    },
                    "PGPORT": {
                      "isOptional": true,
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": true,
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": true,
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": true,
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "defaultValue": "postgres-h3-db"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "defaultValue": "postgresql://${{PGUSER}}:${{PGPASSWORD}}@${{PGHOST}}:${{PGPORT}}/${{PGDATABASE}}?search_path=public"
                    },
                    "POSTGRES_USER": {
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "defaultValue": "postgres"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T07:48:01.503Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b5042151940b48239ace",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 55,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "chikeozulumba/postgres-postgis-h3"
  }
}
