{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e2beb2d0-b73c-473c-a66e-c307e9bb831d",
    "slug": "trailbase",
    "name": "TrailBase",
    "description": "Open-source backend with SQLite, auth, realtime APIs, and an admin UI",
    "url": "https://railway.com/deploy/trailbase",
    "upstream": {
      "image": "trailbase/trailbase:0.31.1"
    }
  },
  "services": [
    {
      "name": "TrailBase",
      "source": {
        "image": "trailbase/trailbase:0.31.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/traildepot",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "TrailBase",
      "description": "Port used by TrailBase and Railway public networking.",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "PUBLIC_URL",
      "service": "TrailBase",
      "description": "Public URL used for auth redirects and email links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "TrailBase",
      "description": "Runs TrailBase as root so it can write to the Railway volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "trailbase"
      }
    },
    "cli": "railway deploy --template trailbase",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e2beb2d0-b73c-473c-a66e-c307e9bb831d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0e4ce5dd-726e-46fc-bcf3-bf2f113ac9fd": {
                  "icon": null,
                  "name": "TrailBase",
                  "deploy": {
                    "startCommand": "/app/trail --depot /app/traildepot run --address 0.0.0.0:4000",
                    "healthcheckPath": "/api/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "trailbase/trailbase:0.31.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by TrailBase and Railway public networking.",
                      "defaultValue": "4000"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL used for auth redirects and email links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs TrailBase as root so it can write to the Railway volume.",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  },
                  "volumeMounts": {
                    "0e4ce5dd-726e-46fc-bcf3-bf2f113ac9fd": {
                      "mountPath": "/app/traildepot"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "TrailBase",
      "method": "GET",
      "path": "/api/healthcheck",
      "expect_status": 200
    }
  },
  "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-08T19:36:06.464Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_000da4089220498ea29e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 92,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "TrailBase"
  }
}
