{
  "manifest_version": "1.0.0",
  "template": {
    "id": "08e19e0d-ae9f-4ae1-98d2-9e2ebdf4e35a",
    "slug": "siyuan-knowledge-base",
    "name": "SiYuan",
    "description": "Knowledge workspace & note-taking app that stores your notes as Markdown",
    "url": "https://railway.com/deploy/siyuan-knowledge-base",
    "upstream": {
      "image": "b3log/siyuan:latest"
    }
  },
  "services": [
    {
      "name": "siyuan",
      "source": {
        "image": "b3log/siyuan:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/siyuan/workspace",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "siyuan",
      "description": "Timezone for daily notes and timestamps",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "siyuan",
      "description": "Port the platform health-checks",
      "secret": false,
      "strategy": "default",
      "default": "6806"
    },
    {
      "key": "SIYUAN_ACCESS_AUTH_CODE",
      "service": "siyuan",
      "description": "Lock screen password, applied every boot",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "siyuan",
      "description": "Shutdown grace period for index flush",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "siyuan-knowledge-base"
      }
    },
    "cli": "railway deploy --template siyuan-knowledge-base",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "08e19e0d-ae9f-4ae1-98d2-9e2ebdf4e35a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6c992c78-2baf-4fa0-afb4-59f5d8ebc98c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/siyuan.svg",
                  "name": "siyuan",
                  "deploy": {
                    "startCommand": "/opt/siyuan/entrypoint.sh serve --workspace=/siyuan/workspace --port=6806 --ssl",
                    "healthcheckPath": "/api/system/version",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "b3log/siyuan:latest"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for daily notes and timestamps",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the platform health-checks",
                      "defaultValue": "6806"
                    },
                    "SIYUAN_ACCESS_AUTH_CODE": {
                      "isOptional": false,
                      "description": "Lock screen password, applied every boot",
                      "defaultValue": "{{SIYUAN_ACCESS_AUTH_CODE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Shutdown grace period for index flush",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:6806": {
                        "port": 6806
                      }
                    }
                  },
                  "volumeMounts": {
                    "6c992c78-2baf-4fa0-afb4-59f5d8ebc98c": {
                      "mountPath": "/siyuan/workspace"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "siyuan",
      "method": "GET",
      "path": "/api/system/version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T20:19:59.717Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9d8f88aa8216432f8ad7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 52,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "siyuan"
  }
}
