{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3be6b7c1-059b-4d59-a87e-2f033b58e6d1",
    "slug": "chromadb-vector",
    "name": "ChromaDB",
    "description": "Vector database that stores documents and finds similar ones",
    "url": "https://railway.com/deploy/chromadb-vector",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/chromadb-railway"
    }
  },
  "services": [
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/gridalpha/chromadb-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "chroma",
      "source": {
        "image": "chromadb/chroma:1.5.9"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "CHROMA_TOKEN",
      "service": "gateway",
      "description": "Bearer token for API clients",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CHROMA_PASSWORD",
      "service": "gateway",
      "description": "Basic auth password, hashed at boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CHROMA_UPSTREAM",
      "service": "gateway",
      "description": "Private address of the database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CHROMA_USERNAME",
      "service": "gateway",
      "description": "Basic auth username",
      "secret": false,
      "strategy": "default",
      "default": "chroma"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "gateway",
      "description": "Dockerfile used to build the gateway",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile"
    },
    {
      "key": "PORT",
      "service": "chroma",
      "description": "Port Railway health checks probe",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "CHROMA_PORT",
      "service": "chroma",
      "description": "Chroma server listening port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "CHROMA_ALLOW_RESET",
      "service": "chroma",
      "description": "Blocks the destructive reset endpoint",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CHROMA_PERSIST_PATH",
      "service": "chroma",
      "description": "Data directory on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "CHROMA_LISTEN_ADDRESS",
      "service": "chroma",
      "description": "Dual-stack bind for private networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chromadb-vector"
      }
    },
    "cli": "railway deploy --template chromadb-vector",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3be6b7c1-059b-4d59-a87e-2f033b58e6d1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "94df3de2-6a92-45aa-8684-0ff5fbf0a0c1": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/chromadb-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "CHROMA_TOKEN": {
                      "isOptional": false,
                      "description": "Bearer token for API clients",
                      "defaultValue": "{{CHROMA_TOKEN}}"
                    },
                    "CHROMA_PASSWORD": {
                      "isOptional": false,
                      "description": "Basic auth password, hashed at boot",
                      "defaultValue": "{{CHROMA_PASSWORD}}"
                    },
                    "CHROMA_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private address of the database",
                      "defaultValue": "${{chroma.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "CHROMA_USERNAME": {
                      "isOptional": false,
                      "description": "Basic auth username",
                      "defaultValue": "chroma"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile used to build the gateway",
                      "defaultValue": "Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "d140a954-725c-4106-ad3d-31be3513132f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/chroma.svg",
                  "name": "chroma",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/v2/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "chromadb/chroma:1.5.9"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway health checks probe",
                      "defaultValue": "8000"
                    },
                    "CHROMA_PORT": {
                      "isOptional": false,
                      "description": "Chroma server listening port",
                      "defaultValue": "8000"
                    },
                    "CHROMA_ALLOW_RESET": {
                      "isOptional": false,
                      "description": "Blocks the destructive reset endpoint",
                      "defaultValue": "false"
                    },
                    "CHROMA_PERSIST_PATH": {
                      "isOptional": false,
                      "description": "Data directory on the volume",
                      "defaultValue": "/data"
                    },
                    "CHROMA_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Dual-stack bind for private networking",
                      "defaultValue": "::"
                    }
                  },
                  "volumeMounts": {
                    "d140a954-725c-4106-ad3d-31be3513132f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T14:02:11.663Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_0c1d68db5a1d49ec85a1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 99,
    "typical_build_seconds": 11,
    "typical_start_seconds": 0,
    "slowest_service": "gateway"
  }
}
