{
  "manifest_version": "1.0.0",
  "template": {
    "id": "868d082d-81f3-4d43-8788-8bf88ab5521d",
    "slug": "dsh-longmemory",
    "name": "DSH + LongMemory",
    "description": "DSH, DeepSeek's coding agent, with LongMemory as its MCP memory server",
    "url": "https://railway.com/deploy/dsh-longmemory",
    "upstream": {
      "repo_url": "https://github.com/RockinPaul/dsh_railway_template"
    }
  },
  "services": [
    {
      "name": "dsh",
      "source": {
        "repo": "https://github.com/RockinPaul/dsh_railway_template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "longmemory",
      "source": {
        "repo": "https://github.com/RockinPaul/longmemory_railway_template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "LONGMEMORY_API_KEY",
      "service": "dsh",
      "description": "Bearer token for that endpoint, shared from the longmemory service. Derived.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LONGMEMORY_MCP_URL",
      "service": "dsh",
      "description": "The LongMemory MCP endpoint on the private network. Derived; nothing to fill in.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "LONGMEMORY_API_KEY",
      "service": "longmemory",
      "description": "Protects the REST API and /mcp. Generated for this deployment; nothing to fill in.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dsh-longmemory"
      }
    },
    "cli": "railway deploy --template dsh-longmemory",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "868d082d-81f3-4d43-8788-8bf88ab5521d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "77f872bd-79c3-40a2-a167-11400d849a7a": {
                  "icon": null,
                  "name": "dsh",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/up",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RockinPaul/dsh_railway_template",
                    "rootDirectory": "/dsh"
                  },
                  "variables": {
                    "DEEPSEEK_API_KEY": {
                      "isOptional": true,
                      "description": "Your DeepSeek API key (platform.deepseek.com). Optional at deploy time: you can paste it later under Settings -> Models, and the harness keeps it on the volume.",
                      "defaultValue": ""
                    },
                    "LONGMEMORY_API_KEY": {
                      "isOptional": false,
                      "description": "Bearer token for that endpoint, shared from the longmemory service. Derived.",
                      "defaultValue": "${{longmemory.LONGMEMORY_API_KEY}}"
                    },
                    "LONGMEMORY_MCP_URL": {
                      "isOptional": false,
                      "description": "The LongMemory MCP endpoint on the private network. Derived; nothing to fill in.",
                      "defaultValue": "http://${{longmemory.RAILWAY_PRIVATE_DOMAIN}}:8080/mcp"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "77f872bd-79c3-40a2-a167-11400d849a7a": {
                      "sizeMB": 5120,
                      "mountPath": "/data"
                    }
                  }
                },
                "b3772d90-e9d0-43fe-b688-1dee4d497864": {
                  "icon": null,
                  "name": "longmemory",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RockinPaul/longmemory_railway_template",
                    "rootDirectory": "/longmemory"
                  },
                  "variables": {
                    "LONGMEMORY_API_KEY": {
                      "isOptional": false,
                      "description": "Protects the REST API and /mcp. Generated for this deployment; nothing to fill in.",
                      "defaultValue": "{{LONGMEMORY_API_KEY}}"
                    }
                  },
                  "volumeMounts": {
                    "b3772d90-e9d0-43fe-b688-1dee4d497864": {
                      "sizeMB": 1024,
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "dsh",
      "method": "GET",
      "path": "/up",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T09:56:32.399Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_bdc7d8701e7a45bb87f9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 98,
    "typical_build_seconds": 61,
    "typical_start_seconds": 10,
    "slowest_service": "dsh"
  }
}
