{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3d23a367-52ea-4055-bdbd-156a4a5249ce",
    "slug": "pocket-id-3",
    "name": "Pocket ID",
    "description": "A simple OIDC provider that enables authentication with passkeys.",
    "url": "https://railway.com/deploy/pocket-id-3",
    "upstream": {
      "image": "ghcr.io/pocket-id/pocket-id:v2"
    }
  },
  "services": [
    {
      "name": "Pocket ID",
      "source": {
        "image": "ghcr.io/pocket-id/pocket-id:v2"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pocket-id-3"
      }
    },
    "cli": "railway deploy --template pocket-id-3",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3d23a367-52ea-4055-bdbd-156a4a5249ce",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "31036c02-d556-45ef-a595-11ac3f49cbb0": {
                  "icon": "https://raw.githubusercontent.com/selfhst/icons/main/svg/pocket-id-light.svg",
                  "name": "Pocket ID",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/pocket-id/pocket-id:v2",
                    "autoUpdates": {
                      "type": "patch",
                      "schedule": [
                        {
                          "day": 0,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 1,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 2,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 3,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 4,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 5,
                          "endHour": 6,
                          "startHour": 2
                        },
                        {
                          "day": 6,
                          "endHour": 6,
                          "startHour": 2
                        }
                      ]
                    }
                  },
                  "variables": {
                    "APP_URL": {
                      "isOptional": false,
                      "description": "The URL where you will access the app.",
                      "defaultValue": "${{\"Pocket ID\".RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUST_PROXY": {
                      "isOptional": true,
                      "description": "Whether the app is behind a reverse proxy.",
                      "defaultValue": "true"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Key used to encrypt data, including the private keys.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {},
                  "volumeMounts": {
                    "31036c02-d556-45ef-a595-11ac3f49cbb0": {
                      "mountPath": "/app/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T03:50:46.860Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4f3cbd69de0b45638df3",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 48,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Pocket ID"
  }
}
