{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e231457b-318a-4614-9a75-ce48db018316",
    "slug": "triliumnext-notes",
    "name": "Triliumnext-notes",
    "description": "Triliumnext-notes production deployment stack",
    "url": "https://railway.com/deploy/triliumnext-notes",
    "upstream": {
      "image": "triliumnext/trilium:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "trilium",
      "source": {
        "image": "triliumnext/trilium:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/node/trilium-data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "trilium",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "triliumnext-notes"
      }
    },
    "cli": "railway deploy --template triliumnext-notes",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e231457b-318a-4614-9a75-ce48db018316",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1f91378c-0aef-4963-9c98-a32393030a74": {
                  "icon": null,
                  "name": "trilium",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "triliumnext/trilium:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "{{PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "1f91378c-0aef-4963-9c98-a32393030a74": {
                      "mountPath": "/home/node/trilium-data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-11-05T10:15:10.704Z",
  "generator_version": "0.1.0"
}
