{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c1e7255d-7195-42eb-8854-68dc5a377d75",
    "slug": "llama-3-2-1b-private-chat",
    "name": "Llama 3.2 1B — Lightweight Private AI Chat",
    "description": "Self-host Llama 3.2 1B — fast, lightweight private chat on CPU",
    "url": "https://railway.com/deploy/llama-3-2-1b-private-chat",
    "upstream": {
      "repo_url": "https://github.com/Err0r430/railway-dockerfiles"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "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-3-2-1b-private-chat"
      }
    },
    "cli": "railway deploy --template llama-3-2-1b-private-chat",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c1e7255d-7195-42eb-8854-68dc5a377d75",
            "serializedConfig": {
              "services": {
                "22bab807-3846-4be3-aef4-88664a9ee62b": {
                  "icon": "https://community.mailcow.email/api/kilowhat-rich-embeds/proxy?url=https%3A%2F%2Fcaddyserver.com%2Fresources%2Fimages%2Ffavicon.png%3Fv%3D3a8c2af",
                  "name": "Caddy",
                  "source": {
                    "repo": "Err0r430/railway-dockerfiles",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "443"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{API_KEY}}"
                    },
                    "UPSTREAM": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{llama3.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{llama3.PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:443": {
                        "port": 443
                      }
                    }
                  }
                },
                "9537f941-3f62-45ad-bc57-8b2541d675b5": {
                  "icon": "https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/meta-color.png",
                  "name": "llama3",
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "11434"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:11418": {
                        "port": 11418
                      }
                    }
                  },
                  "volumeMounts": {
                    "9537f941-3f62-45ad-bc57-8b2541d675b5": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-07T11:54:15.772Z",
  "generator_version": "0.1.0"
}
