{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0a9ae9c5-9cd9-41b9-b7ec-f16b5f3b4a45",
    "slug": "tZQJlB",
    "name": "Doku",
    "description": "Doku is an open-source LLMOps tool to monitor & evaluate LLM applications",
    "url": "https://railway.com/deploy/tZQJlB",
    "upstream": {
      "image": "ghcr.io/dokulabs/doku-client:latest"
    }
  },
  "services": [
    {
      "name": "Doku Client",
      "source": {
        "image": "ghcr.io/dokulabs/doku-client:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/client/data",
      "http": true
    },
    {
      "name": "Doku Ingester",
      "source": {
        "image": "ghcr.io/dokulabs/doku-ingester:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Clickhouse",
      "source": {
        "image": "clickhouse/clickhouse-server:24.2.2-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/clickhouse",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "INIT_DB_HOST",
      "service": "Doku Client",
      "description": "Sets the host address of the ClickHouse server for Doku Client to connect",
      "secret": false,
      "strategy": "default",
      "default": "clickhouse.railway.internal"
    },
    {
      "key": "INIT_DB_PORT",
      "service": "Doku Client",
      "description": "Sets the port on which ClickHouse listens",
      "secret": false,
      "strategy": "default",
      "default": "8123"
    },
    {
      "key": "INIT_DB_DATABASE",
      "service": "Doku Client",
      "description": "Sets the name of the database in Clickhouse to be used by Doku",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "INIT_DB_PASSWORD",
      "service": "Doku Client",
      "description": "Sets the password for authenticating with ClickHouse",
      "secret": true,
      "strategy": "default",
      "default": "DOKU"
    },
    {
      "key": "INIT_DB_USERNAME",
      "service": "Doku Client",
      "description": "Sets the username for authenticating with ClickHouse",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "SQLITE_DATABASE_URL",
      "service": "Doku Client",
      "description": "Sets the location where SQLITE data is stored.",
      "secret": false,
      "strategy": "default",
      "default": "file:/app/client/data/data.db"
    },
    {
      "key": "PORT",
      "service": "Doku Ingester",
      "description": "Sets the port on which Ingester is running",
      "secret": false,
      "strategy": "default",
      "default": "9044"
    },
    {
      "key": "DOKU_DB_HOST",
      "service": "Doku Ingester",
      "description": "Sets the host address of the ClickHouse server for Doku Ingester to connect",
      "secret": false,
      "strategy": "default",
      "default": "clickhouse.railway.internal"
    },
    {
      "key": "DOKU_DB_NAME",
      "service": "Doku Ingester",
      "description": "Sets the name of the database in Clickhouse to be used by Doku",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "DOKU_DB_PORT",
      "service": "Doku Ingester",
      "description": "Sets the port on which ClickHouse listens",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "DOKU_DB_USER",
      "service": "Doku Ingester",
      "description": "Provide a value for DOKU_DB_USER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "DOKU_DB_PASSWORD",
      "service": "Doku Ingester",
      "description": "Sets the password for authenticating with ClickHouse",
      "secret": true,
      "strategy": "default",
      "default": "DOKU"
    },
    {
      "key": "CLICKHOUSE_USER",
      "service": "Clickhouse",
      "description": "Provide a value for CLICKHOUSE_USER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "CLICKHOUSE_PASSWORD",
      "service": "Clickhouse",
      "description": "Provide a value for CLICKHOUSE_PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "DOKU"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tZQJlB"
      }
    },
    "cli": "railway deploy --template tZQJlB",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0a9ae9c5-9cd9-41b9-b7ec-f16b5f3b4a45",
            "serializedConfig": {
              "services": {
                "02822a54-6a6f-4cc4-95d5-8a45ae4e9b65": {
                  "name": "Doku Client",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/dokulabs/doku-client:latest"
                  },
                  "variables": {
                    "INIT_DB_HOST": {
                      "isOptional": false,
                      "description": "Sets the host address of the ClickHouse server for Doku Client to connect",
                      "defaultValue": "clickhouse.railway.internal"
                    },
                    "INIT_DB_PORT": {
                      "isOptional": false,
                      "description": "Sets the port on which ClickHouse listens",
                      "defaultValue": "8123"
                    },
                    "INIT_DB_DATABASE": {
                      "isOptional": false,
                      "description": "Sets the name of the database in Clickhouse to be used by Doku",
                      "defaultValue": "default"
                    },
                    "INIT_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Sets the password for authenticating with ClickHouse",
                      "defaultValue": "DOKU"
                    },
                    "INIT_DB_USERNAME": {
                      "isOptional": false,
                      "description": "Sets the username for authenticating with ClickHouse",
                      "defaultValue": "default"
                    },
                    "SQLITE_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Sets the location where SQLITE data is stored.",
                      "defaultValue": "file:/app/client/data/data.db"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "02822a54-6a6f-4cc4-95d5-8a45ae4e9b65": {
                      "mountPath": "/app/client/data"
                    }
                  }
                },
                "3191f83b-f4e4-435c-af98-e4cf87e7a828": {
                  "name": "Doku Ingester",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/dokulabs/doku-ingester:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Sets the port on which Ingester is running",
                      "defaultValue": "9044"
                    },
                    "DOKU_DB_HOST": {
                      "isOptional": false,
                      "description": "Sets the host address of the ClickHouse server for Doku Ingester to connect",
                      "defaultValue": "clickhouse.railway.internal"
                    },
                    "DOKU_DB_NAME": {
                      "isOptional": false,
                      "description": "Sets the name of the database in Clickhouse to be used by Doku",
                      "defaultValue": "default"
                    },
                    "DOKU_DB_PORT": {
                      "isOptional": false,
                      "description": "Sets the port on which ClickHouse listens",
                      "defaultValue": "9000"
                    },
                    "DOKU_DB_USER": {
                      "isOptional": false,
                      "defaultValue": "default"
                    },
                    "DOKU_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Sets the password for authenticating with ClickHouse",
                      "defaultValue": "DOKU"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "6bfe9e8b-2261-4fe7-8c7d-8f16cfe73697": {
                  "name": "Clickhouse",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "clickhouse/clickhouse-server:24.2.2-alpine"
                  },
                  "variables": {
                    "CLICKHOUSE_USER": {
                      "isOptional": false,
                      "defaultValue": "default"
                    },
                    "CLICKHOUSE_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "DOKU"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6bfe9e8b-2261-4fe7-8c7d-8f16cfe73697": {
                      "mountPath": "/var/lib/clickhouse"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-14T10:14:50.742Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-14T13:13:00.188Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_c0fcd693ebc94a538070",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,DEPLOYING,FAILED"
      }
    ]
  }
}
