{
  "manifest_version": "1.0.0",
  "template": {
    "id": "31bb6932-ba81-40d1-8870-f0c8032325a7",
    "slug": "trilium-notes",
    "name": "Trilium Notes",
    "description": "Personal knowledge base for structured notes, links, and automation.",
    "url": "https://railway.com/deploy/trilium-notes",
    "upstream": {
      "image": "triliumnext/trilium:v0.104.1"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Trilium Notes",
      "source": {
        "image": "triliumnext/trilium:v0.104.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/trilium-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Trilium Notes",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TRILIUM_DATA_DIR",
      "service": "Trilium Notes",
      "description": "Provide a value for TRILIUM_DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/home/node/trilium-data"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "trilium-notes"
      }
    },
    "cli": "railway deploy --template trilium-notes",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "31bb6932-ba81-40d1-8870-f0c8032325a7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a244c50e-de75-47db-ae0e-3ea551cb033c": {
                  "icon": null,
                  "name": "Trilium Notes",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health-check",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "triliumnext/trilium:v0.104.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "8080"
                    },
                    "TRILIUM_DATA_DIR": {
                      "isOptional": false,
                      "defaultValue": "/home/node/trilium-data"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "a244c50e-de75-47db-ae0e-3ea551cb033c": {
                      "mountPath": "/home/node/trilium-data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Trilium Notes",
      "method": "GET",
      "path": "/api/health-check",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-07T05:54:14.153Z",
  "generator_version": "0.1.0"
}
