{
  "manifest_version": "1.0.0",
  "template": {
    "id": "83e423eb-1feb-4ffd-9aae-156b1cea7d14",
    "slug": "consultant-markdown-vault-with-silverbul",
    "name": "Consultant Markdown Vault with SilverBullet",
    "description": "A password-protected Markdown knowledge space with a durable volume.",
    "url": "https://railway.com/deploy/consultant-markdown-vault-with-silverbul",
    "upstream": {
      "image": "ghcr.io/silverbulletmd/silverbullet@sha256:370a3bf2daa37b7dbba62183085c57d5d43862189ea127e0765646d230561d9d"
    }
  },
  "services": [
    {
      "name": "App",
      "source": {
        "image": "ghcr.io/silverbulletmd/silverbullet@sha256:370a3bf2daa37b7dbba62183085c57d5d43862189ea127e0765646d230561d9d"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "App",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PORT",
      "service": "App",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SB_PORT",
      "service": "App",
      "description": "Provide a value for SB_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SB_USER",
      "service": "App",
      "description": "Provide a value for SB_USER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SB_FOLDER",
      "service": "App",
      "description": "Provide a value for SB_FOLDER.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "SB_HOSTNAME",
      "service": "App",
      "description": "Provide a value for SB_HOSTNAME.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "SB_RUNTIME_API",
      "service": "App",
      "description": "Provide a value for SB_RUNTIME_API.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "VAULT_PASSWORD",
      "service": "App",
      "description": "Provide a value for VAULT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "consultant-markdown-vault-with-silverbul"
      }
    },
    "cli": "railway deploy --template consultant-markdown-vault-with-silverbul",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "83e423eb-1feb-4ffd-9aae-156b1cea7d14",
            "serializedConfig": {
              "services": {
                "4d264f72-50d4-5acb-851e-71020bec6897": {
                  "name": "App",
                  "deploy": {
                    "startCommand": "/sbin/tini -- /docker-entrypoint.sh --single",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "ghcr.io/silverbulletmd/silverbullet@sha256:370a3bf2daa37b7dbba62183085c57d5d43862189ea127e0765646d230561d9d"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "Etc/UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "SB_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "3000"
                    },
                    "SB_USER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "operator:${{VAULT_PASSWORD}}"
                    },
                    "SB_FOLDER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "/data"
                    },
                    "SB_HOSTNAME": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0.0.0.0"
                    },
                    "SB_RUNTIME_API": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    },
                    "VAULT_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{VAULT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "7cdbd0d4-ab9a-54bc-b6e9-16dd46f3b67a": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T09:16:41.953Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_441ae831f3954d128a59",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 89,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "App"
  }
}
