{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e8ae6b47-0c25-4284-9e6a-a911fd1ac7d9",
    "slug": "chroma-db",
    "name": "Chroma",
    "description": "Persistent vector database for RAG and AI memory with protected access.",
    "url": "https://railway.com/deploy/chroma-db",
    "upstream": {
      "repo_url": "https://github.com/FraglyG/CaddyAuthProxy"
    }
  },
  "services": [
    {
      "name": "chroma",
      "source": {
        "image": "chromadb/chroma:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/chroma/chroma",
      "http": false
    },
    {
      "name": "Auth",
      "source": {
        "repo": "https://github.com/FraglyG/CaddyAuthProxy"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ALLOW_RESET",
      "service": "chroma",
      "description": "Prevent remote database reset operations",
      "secret": false,
      "strategy": "default",
      "default": "FALSE"
    },
    {
      "key": "IS_PERSISTENT",
      "service": "chroma",
      "description": "Enable persistent Chroma database storage",
      "secret": false,
      "strategy": "default",
      "default": "TRUE"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "chroma",
      "description": "Run as root to ensure Railway volume write permissions",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PERSIST_DIRECTORY",
      "service": "chroma",
      "description": "Persistent Chroma data directory",
      "secret": false,
      "strategy": "default",
      "default": "/chroma/chroma"
    },
    {
      "key": "ANONYMIZED_TELEMETRY",
      "service": "chroma",
      "description": "Disable anonymized telemetry",
      "secret": false,
      "strategy": "default",
      "default": "FALSE"
    },
    {
      "key": "PORT",
      "service": "Auth",
      "description": "Public HTTP port used by the authentication proxy",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "API_KEY",
      "service": "Auth",
      "description": "API key required to access the protected Chroma API",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TARGET_PORT",
      "service": "Auth",
      "description": "Internal HTTP port used by Chroma",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "TARGET_DOMAIN",
      "service": "Auth",
      "description": "Private Railway hostname of the Chroma service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chroma-db"
      }
    },
    "cli": "railway deploy --template chroma-db",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e8ae6b47-0c25-4284-9e6a-a911fd1ac7d9",
            "serializedConfig": {
              "services": {
                "c3a4dc0c-dba8-460a-a6d1-aee1f7eae6e8": {
                  "icon": "https://www.gravatar.com/avatar/d90c49a71c60fef8e0756cf54ee59b2f",
                  "name": "chroma",
                  "source": {
                    "image": "chromadb/chroma:latest"
                  },
                  "variables": {
                    "ALLOW_RESET": {
                      "description": "Prevent remote database reset operations",
                      "defaultValue": "FALSE"
                    },
                    "IS_PERSISTENT": {
                      "description": "Enable persistent Chroma database storage",
                      "defaultValue": "TRUE"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root to ensure Railway volume write permissions",
                      "defaultValue": "0"
                    },
                    "PERSIST_DIRECTORY": {
                      "description": "Persistent Chroma data directory",
                      "defaultValue": "/chroma/chroma"
                    },
                    "ANONYMIZED_TELEMETRY": {
                      "description": "Disable anonymized telemetry",
                      "defaultValue": "FALSE"
                    }
                  },
                  "networking": {
                    "serviceDomains": null
                  },
                  "volumeMounts": {
                    "c3a4dc0c-dba8-460a-a6d1-aee1f7eae6e8": {
                      "mountPath": "/chroma/chroma"
                    }
                  }
                },
                "cb37bd99-8eb9-4373-b610-ffefc6cad551": {
                  "icon": "https://img.icons8.com/?size=80&id=AZ2LjCeHqRan&format=png",
                  "name": "Auth",
                  "source": {
                    "repo": "FraglyG/CaddyAuthProxy"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Public HTTP port used by the authentication proxy",
                      "defaultValue": "80"
                    },
                    "API_KEY": {
                      "description": "API key required to access the protected Chroma API",
                      "defaultValue": "{{API_KEY}}"
                    },
                    "TARGET_PORT": {
                      "description": "Internal HTTP port used by Chroma",
                      "defaultValue": "8000"
                    },
                    "TARGET_DOMAIN": {
                      "description": "Private Railway hostname of the Chroma service",
                      "defaultValue": "${{chroma.RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-19T13:51:18.104Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9593a65c9f91479baeb7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 78,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "Auth"
  }
}
