{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4f16379f-ac01-4072-9766-3b7827ccbb93",
    "slug": "embedding-gemma",
    "name": "Embedding Gemma",
    "description": "Generate high-quality text embeddings with Google's best model",
    "url": "https://railway.com/deploy/embedding-gemma",
    "upstream": {
      "repo_url": "https://github.com/FraglyG/CaddyAuthProxy"
    }
  },
  "services": [
    {
      "name": "Embedding Gemma",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "Auth Proxy",
      "source": {
        "repo": "https://github.com/FraglyG/CaddyAuthProxy"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Embedding Gemma",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "11434"
    },
    {
      "key": "MODEL",
      "service": "Embedding Gemma",
      "description": "Model from https://ollama.com/library",
      "secret": false,
      "strategy": "default",
      "default": "embeddinggemma:300m"
    },
    {
      "key": "PORT",
      "service": "Auth Proxy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "API_KEY",
      "service": "Auth Proxy",
      "description": "Provide a value for API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TARGET_PORT",
      "service": "Auth Proxy",
      "description": "Provide a value for TARGET_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TARGET_DOMAIN",
      "service": "Auth Proxy",
      "description": "Provide a value for TARGET_DOMAIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "embedding-gemma"
      }
    },
    "cli": "railway deploy --template embedding-gemma",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4f16379f-ac01-4072-9766-3b7827ccbb93",
            "serializedConfig": {
              "services": {
                "69600290-5e74-4962-b0f4-296840698cc1": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/gemma-color.png",
                  "name": "Embedding Gemma",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"ollama serve & pid=$!; sleep 5; ollama pull $MODEL; wait $pid\"",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "11434"
                    },
                    "MODEL": {
                      "isOptional": false,
                      "description": "Model from https://ollama.com/library",
                      "defaultValue": "embeddinggemma:300m"
                    }
                  },
                  "volumeMounts": {
                    "69600290-5e74-4962-b0f4-296840698cc1": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "89f783d5-063a-4392-8f32-45859c3fbe50": {
                  "icon": "https://img.icons8.com/?size=80&id=AZ2LjCeHqRan&format=png",
                  "name": "Auth Proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "https://github.com/FraglyG/CaddyAuthProxy",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "80"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{API_KEY}}"
                    },
                    "TARGET_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Embedding Gemma.PORT}}"
                    },
                    "TARGET_DOMAIN": {
                      "isOptional": false,
                      "defaultValue": "${{Embedding Gemma.RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Auth Proxy",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T20:25:37.800Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d0eb6ad1ae8c40d3a4db",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 10,
    "typical_start_seconds": 11,
    "slowest_service": "Auth Proxy"
  }
}
