{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5a2f08ed-05fe-4d28-9f76-da99d8552416",
    "slug": "pocket-id-2",
    "name": "Pocket ID",
    "description": "A simple, self-hosted OIDC provider with passkey-only authentication.",
    "url": "https://railway.com/deploy/pocket-id-2",
    "upstream": {
      "image": "ghcr.io/pocket-id/pocket-id:latest"
    }
  },
  "services": [
    {
      "name": "pocket-id",
      "source": {
        "image": "ghcr.io/pocket-id/pocket-id:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "pocket-id",
      "description": "The port on which Pocket ID should listen",
      "secret": false,
      "strategy": "default",
      "default": "1411"
    },
    {
      "key": "APP_URL",
      "service": "pocket-id",
      "description": "The URL where you will access the app",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRUST_PROXY",
      "service": "pocket-id",
      "description": "Whether the app is behind a reverse proxy",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "pocket-id",
      "description": "Key used to encrypt data, including the private keys",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ANALYTICS_DISABLED",
      "service": "pocket-id",
      "description": "Disables the daily heartbeat request to the analytics server",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "VERSION_CHECK_DISABLED",
      "service": "pocket-id",
      "description": "Disables the automatic version check against GitHub",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocket-id-2"
      }
    },
    "cli": "railway deploy --template pocket-id-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5a2f08ed-05fe-4d28-9f76-da99d8552416",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9b5182cd-fc48-44f3-9751-19c8236d31c4": {
                  "icon": null,
                  "name": "pocket-id",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/pocket-id/pocket-id:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "The port on which Pocket ID should listen",
                      "defaultValue": "1411"
                    },
                    "APP_URL": {
                      "isOptional": true,
                      "description": "The URL where you will access the app",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUST_PROXY": {
                      "isOptional": true,
                      "description": "Whether the app is behind a reverse proxy",
                      "defaultValue": "true"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Key used to encrypt data, including the private keys",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "ANALYTICS_DISABLED": {
                      "isOptional": true,
                      "description": "Disables the daily heartbeat request to the analytics server",
                      "defaultValue": "true"
                    },
                    "VERSION_CHECK_DISABLED": {
                      "isOptional": true,
                      "description": "Disables the automatic version check against GitHub",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "9b5182cd-fc48-44f3-9751-19c8236d31c4": {
                      "mountPath": "/app/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-09T05:29:41.454Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_48299211b6ef44cbb026",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 72,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "pocket-id"
  }
}
