{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2521562a-181a-4591-9a43-3075684797fb",
    "slug": "postgresql-extensions",
    "name": "PostgreSQL Extensions",
    "description": "PostgreSQL + pgvector, postgis, pg_trgm, pgmq, pg_cron, pgcrypto and more.",
    "url": "https://railway.com/deploy/postgresql-extensions",
    "upstream": {
      "image": "ghcr.io/karan316/postgres-extensions"
    }
  },
  "services": [
    {
      "name": "postgres",
      "source": {
        "image": "ghcr.io/karan316/postgres-extensions"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "EXTENSIONS",
      "service": "postgres",
      "description": "Provide a value for EXTENSIONS.",
      "secret": false,
      "strategy": "default",
      "default": "pgvector,pg_trgm,pgmq,pg_cron,pg_stat_statements,pg_partman,pgcrypto,postgis,uuid-ossp,btree_gin,hstore"
    },
    {
      "key": "POSTGRES_DB",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_USER",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "postgres"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgresql-extensions"
      }
    },
    "cli": "railway deploy --template postgresql-extensions",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2521562a-181a-4591-9a43-3075684797fb",
            "serializedConfig": {
              "services": {
                "8fa1dc6c-20b1-4815-a094-f89c5866916d": {
                  "icon": "https://devicons.railway.com/i/postgresql.svg",
                  "name": "postgres",
                  "source": {
                    "image": "ghcr.io/karan316/postgres-extensions"
                  },
                  "variables": {
                    "EXTENSIONS": {
                      "defaultValue": "pgvector,pg_trgm,pgmq,pg_cron,pg_stat_statements,pg_partman,pgcrypto,postgis,uuid-ossp,btree_gin,hstore"
                    },
                    "POSTGRES_DB": {
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_USER": {
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "defaultValue": "postgres"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "8fa1dc6c-20b1-4815-a094-f89c5866916d": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-09T05:46:39.111Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f471eb37be2043438af6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 76,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "postgres"
  }
}
