{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1c2f01a4-c0b8-4aab-8539-21ccba3e680f",
    "slug": "gpt-oss",
    "name": "GPT-OSS",
    "description": "Deploy and host GPT-OSS on Railway.",
    "url": "https://railway.com/deploy/gpt-oss",
    "upstream": {
      "repo_url": "https://github.com/Err0r430/railway-dockerfiles"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "GPT-OSS Model",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "Caddy",
      "source": {
        "repo": "https://github.com/Err0r430/railway-dockerfiles"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "GPT-OSS Model",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "11434"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gpt-oss"
      }
    },
    "cli": "railway deploy --template gpt-oss",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1c2f01a4-c0b8-4aab-8539-21ccba3e680f",
            "serializedConfig": {
              "services": {
                "1495150c-1c73-43af-ace2-94cd3d1aca01": {
                  "icon": "https://cdn.prod.website-files.com/5f15081919fdf673994ab5fd/63e05b42f46ebfbc65a734bc_OpenAI%20GPT%20Logo.svg",
                  "name": "GPT-OSS Model",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"ollama serve & pid=$!; sleep 5; ollama pull gpt-oss; wait $pid\"",
                    "healthcheckPath": null,
                    "useLegacyStacker": true
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "11434"
                    }
                  },
                  "volumeMounts": {
                    "1495150c-1c73-43af-ace2-94cd3d1aca01": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "b649f240-b36d-48c1-ace0-9ecc47346213": {
                  "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": "${{GPT-OSS Model.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{GPT-OSS Model.PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-03T23:07:37.076Z",
  "generator_version": "0.1.0"
}
