{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e5939101-abff-4818-a2a9-a07e42c44ff4",
    "slug": "db-gpt-data-assistant",
    "name": "DB-GPT Data Assistant",
    "description": "Private AI data assistant with persistent metadata and vector storage.",
    "url": "https://railway.com/deploy/db-gpt-data-assistant",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "db-gpt",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "core",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "db-gpt",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "db-gpt",
      "description": "Owner auth for db-gpt. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "db-gpt",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "db-gpt",
      "description": "Upstream port for db-gpt. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "5670"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "db-gpt",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "db-gpt",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    },
    {
      "key": "HF_HOME",
      "service": "core",
      "description": "Hf home for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache/huggingface"
    },
    {
      "key": "DBGPT_LANG",
      "service": "core",
      "description": "Dbgpt lang for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "PUBLIC_URL",
      "service": "core",
      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "core",
      "description": "Generated Formbricks encryption key. Back it up securely; changing it can make encrypted data unreadable.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LLM_MODEL_NAME",
      "service": "core",
      "description": "Llm model name for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "core",
      "description": "Required model-provider API key. Provider charges are separate from Railway.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OPENAI_API_BASE",
      "service": "core",
      "description": "Openai api base for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "https://api.openai.com/v1"
    },
    {
      "key": "EMBEDDING_MODEL_NAME",
      "service": "core",
      "description": "Embedding model name for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "text-embedding-3-small"
    },
    {
      "key": "EMBEDDING_MODEL_API_URL",
      "service": "core",
      "description": "Embedding model api url for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "https://api.openai.com/v1/embeddings"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "core",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/db-gpt/Dockerfile"
    },
    {
      "key": "DBGPT_MAX_PARALLEL_SUBAGENTS",
      "service": "core",
      "description": "Dbgpt max parallel subagents for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "db-gpt-data-assistant"
      }
    },
    "cli": "railway deploy --template db-gpt-data-assistant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e5939101-abff-4818-a2a9-a07e42c44ff4",
            "serializedConfig": {
              "services": {
                "916a1f32-bc4c-579f-b0d3-e890842e3dde": {
                  "name": "db-gpt",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/fifteen-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Owner auth for db-gpt. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{core.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for db-gpt. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "5670"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "e9bf07b2-ced0-533e-b8cc-5a290e870672": {
                  "name": "core",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/db-gpt/Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/fifteen-template-drafts"
                  },
                  "variables": {
                    "HF_HOME": {
                      "isOptional": false,
                      "description": "Hf home for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/cache/huggingface"
                    },
                    "DBGPT_LANG": {
                      "isOptional": false,
                      "description": "Dbgpt lang for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "en"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public url resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "https://${{db-gpt.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated Formbricks encryption key. Back it up securely; changing it can make encrypted data unreadable.",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "LLM_MODEL_NAME": {
                      "isOptional": false,
                      "description": "Llm model name for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "gpt-4o"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Required model-provider API key. Provider charges are separate from Railway.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "OPENAI_API_BASE": {
                      "isOptional": false,
                      "description": "Openai api base for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "https://api.openai.com/v1"
                    },
                    "EMBEDDING_MODEL_NAME": {
                      "isOptional": false,
                      "description": "Embedding model name for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "text-embedding-3-small"
                    },
                    "EMBEDDING_MODEL_API_URL": {
                      "isOptional": false,
                      "description": "Embedding model api url for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "https://api.openai.com/v1/embeddings"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/db-gpt/Dockerfile"
                    },
                    "DBGPT_MAX_PARALLEL_SUBAGENTS": {
                      "isOptional": false,
                      "description": "Dbgpt max parallel subagents for core. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "00be78aa-d23d-52b6-8939-07ba72082160": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "db-gpt",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T22:14:35.692Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-13T20:13:24.368Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d34a7b8e53d742df97c9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 114,
    "typical_build_seconds": 41,
    "typical_start_seconds": 10,
    "slowest_service": "core"
  }
}
