{
  "manifest_version": "1.0.0",
  "template": {
    "id": "94f54628-39fe-4f4d-8af0-45679f116da1",
    "slug": "ollama-or-self-host-open-source-llms",
    "name": "Ollama [Updated Jun '26]",
    "description": "[Jun '26] Self-host your own LLM model server with a single click.",
    "url": "https://railway.com/deploy/ollama-or-self-host-open-source-llms",
    "upstream": {
      "image": "ollama/ollama"
    }
  },
  "services": [
    {
      "name": "Ollama",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "OLLAMA_HOST",
      "service": "Ollama",
      "description": "Allows Ollama to listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "OLLAMA_ORIGINS",
      "service": "Ollama",
      "description": "Comma-separated list of allowed origins for CORS. Needed if you’re connecting a web app (like OpenWebUI) from a different host/domain",
      "secret": false,
      "strategy": "default",
      "default": "*"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ollama-or-self-host-open-source-llms"
      }
    },
    "cli": "railway deploy --template ollama-or-self-host-open-source-llms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "94f54628-39fe-4f4d-8af0-45679f116da1",
            "serializedConfig": {
              "services": {
                "75634e8f-4ec2-4b76-9f73-7ca7cd19cbbd": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/ollama-dark.svg",
                  "name": "Ollama",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "isOptional": false,
                      "description": "Allows Ollama to listen on all interfaces",
                      "defaultValue": "::"
                    },
                    "OLLAMA_ORIGINS": {
                      "isOptional": false,
                      "description": "Comma-separated list of allowed origins for CORS. Needed if you’re connecting a web app (like OpenWebUI) from a different host/domain",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:11434": {
                        "port": 11434
                      }
                    }
                  },
                  "volumeMounts": {
                    "75634e8f-4ec2-4b76-9f73-7ca7cd19cbbd": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T17:57:06.223Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_383029cbd84f484eb658",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 103,
    "typical_build_seconds": 0,
    "typical_start_seconds": 41,
    "slowest_service": "Ollama"
  }
}
