{
  "manifest_version": "1.0.0",
  "template": {
    "id": "671b8acb-319e-4826-b719-eb23890c5d1d",
    "slug": "llama-32-1b",
    "name": "llama-3.2-1b",
    "description": "Deploy and host llama 3.2-1b on Railway.",
    "url": "https://railway.com/deploy/llama-32-1b",
    "upstream": {
      "repo_url": "https://github.com/Err0r430/railway-dockerfiles"
    }
  },
  "services": [
    {
      "name": "Caddy",
      "source": {
        "repo": "https://github.com/Err0r430/railway-dockerfiles"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "llama3",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Caddy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "API_KEY",
      "service": "Caddy",
      "description": "Provide a value for API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "UPSTREAM",
      "service": "Caddy",
      "description": "Provide a value for UPSTREAM.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "Caddy",
      "description": "Provide a value for UPSTREAM_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "llama3",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "11434"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "llama-32-1b"
      }
    },
    "cli": "railway deploy --template llama-32-1b",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "671b8acb-319e-4826-b719-eb23890c5d1d",
            "serializedConfig": {
              "services": {
                "a11a7af8-d7ff-4568-859a-e3a695bc9100": {
                  "icon": "https://community.mailcow.email/api/kilowhat-rich-embeds/proxy?url=https%3A%2F%2Fcaddyserver.com%2Fresources%2Fimages%2Ffavicon.png%3Fv%3D3a8c2af",
                  "name": "Caddy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "useLegacyStacker": true
                  },
                  "source": {
                    "repo": "https://github.com/Err0r430/railway-dockerfiles",
                    "rootDirectory": "/caddy"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "443"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{API_KEY}}"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "defaultValue": "${{llama3.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{llama3.PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "cacfcfa8-6003-404b-9f41-1dc677c8af42": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/meta-color.png",
                  "name": "llama3",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"ollama serve & pid=$!; sleep 5; ollama pull llama3.2:1b; wait $pid\"",
                    "healthcheckPath": null,
                    "useLegacyStacker": true
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "11434"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "cacfcfa8-6003-404b-9f41-1dc677c8af42": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T10:14:41.946Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T02:19:11.863Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_47bad33f698d4a41a5f5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 142,
    "typical_build_seconds": 6,
    "typical_start_seconds": 26,
    "slowest_service": "llama3"
  }
}
