{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5c37e1e3-d0c8-43e4-9cf4-0101ded2d4c7",
    "slug": "cobalt-tools-setup",
    "name": "Cobalt Tools [Updated Oct '26]",
    "description": "Self-host Cobalt: YouTube, TikTok & 20+ platforms. No ads. No tracking.",
    "url": "https://railway.com/deploy/cobalt-tools-setup",
    "upstream": {
      "image": "ghcr.io/spotdemo4/cobalt-web:latest"
    }
  },
  "services": [
    {
      "name": "web",
      "source": {
        "image": "ghcr.io/spotdemo4/cobalt-web:latest"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "api",
      "source": {
        "image": "ghcr.io/imputnet/cobalt:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "web",
      "description": "Must match the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "8787"
    },
    {
      "key": "WEB_HOST",
      "service": "web",
      "description": "This service's own public URL, used for canonical links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LOG_LEVEL",
      "service": "web",
      "description": "Log verbosity for the static file server.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "WEB_DEFAULT_API",
      "service": "web",
      "description": "The api service's public URL. Baked into the frontend at boot — requires both services to be in the same project with matching service names for this reference to resolve.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "api",
      "description": "Must match API_PORT and the domain's target port.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "API_URL",
      "service": "api",
      "description": "The API's own public URL — used to build download tunnel links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_PORT",
      "service": "api",
      "description": "Port the API listens on.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "CORS_WILDCARD",
      "service": "api",
      "description": "Allows the web service (a different domain) to call this API from the browser.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "RATELIMIT_MAX",
      "service": "api",
      "description": "Max requests per rate-limit window, per IP.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "DURATION_LIMIT",
      "service": "api",
      "description": "Max video duration in seconds cobalt will process.",
      "secret": false,
      "strategy": "default",
      "default": "10800"
    },
    {
      "key": "TUNNEL_LIFESPAN",
      "service": "api",
      "description": "How long a download tunnel stays valid, in seconds.",
      "secret": false,
      "strategy": "default",
      "default": "90"
    },
    {
      "key": "RATELIMIT_WINDOW",
      "service": "api",
      "description": "Rate-limit window in seconds.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "API_LISTEN_ADDRESS",
      "service": "api",
      "description": "Address the API server binds to.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PROCESSING_PRIORITY",
      "service": "api",
      "description": "Process niceness for media processing.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "TUNNEL_RATELIMIT_MAX",
      "service": "api",
      "description": "Max tunnel requests per window, per IP.",
      "secret": false,
      "strategy": "default",
      "default": "40"
    },
    {
      "key": "SESSION_RATELIMIT_MAX",
      "service": "api",
      "description": "Max session creations per window, per IP.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "FORCE_LOCAL_PROCESSING",
      "service": "api",
      "description": "Processing mode.",
      "secret": false,
      "strategy": "default",
      "default": "never"
    },
    {
      "key": "TUNNEL_RATELIMIT_WINDOW",
      "service": "api",
      "description": "Tunnel rate-limit window in seconds.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "SESSION_RATELIMIT_WINDOW",
      "service": "api",
      "description": "Session rate-limit window in seconds.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cobalt-tools-setup"
      }
    },
    "cli": "railway deploy --template cobalt-tools-setup",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5c37e1e3-d0c8-43e4-9cf4-0101ded2d4c7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9b22f19c-cd2e-4153-8e21-94cbe494dec5": {
                  "icon": "https://res.cloudinary.com/dh2nt6hgh/image/upload/v1759035050/cobalt_logo_zlnnac.png",
                  "name": "web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/spotdemo4/cobalt-web:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Must match the domain's target port.",
                      "defaultValue": "8787"
                    },
                    "WEB_HOST": {
                      "isOptional": false,
                      "description": "This service's own public URL, used for canonical links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity for the static file server.",
                      "defaultValue": "info"
                    },
                    "WEB_DEFAULT_API": {
                      "isOptional": false,
                      "description": "The api service's public URL. Baked into the frontend at boot — requires both services to be in the same project with matching service names for this reference to resolve.",
                      "defaultValue": "https://${{api.RAILWAY_PUBLIC_DOMAIN}}/"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8787": {
                        "port": 8787
                      }
                    }
                  }
                },
                "bad2ac94-125f-4d6f-9e6b-162d54796cf8": {
                  "icon": "https://res.cloudinary.com/dh2nt6hgh/image/upload/v1759035050/cobalt_logo_zlnnac.png",
                  "name": "api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/imputnet/cobalt:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Must match API_PORT and the domain's target port.",
                      "defaultValue": "9000"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "description": "The API's own public URL — used to build download tunnel links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/"
                    },
                    "API_PORT": {
                      "isOptional": false,
                      "description": "Port the API listens on.",
                      "defaultValue": "9000"
                    },
                    "CORS_WILDCARD": {
                      "isOptional": false,
                      "description": "Allows the web service (a different domain) to call this API from the browser.",
                      "defaultValue": "1"
                    },
                    "RATELIMIT_MAX": {
                      "isOptional": false,
                      "description": "Max requests per rate-limit window, per IP.",
                      "defaultValue": "20"
                    },
                    "DURATION_LIMIT": {
                      "isOptional": false,
                      "description": "Max video duration in seconds cobalt will process.",
                      "defaultValue": "10800"
                    },
                    "TUNNEL_LIFESPAN": {
                      "isOptional": false,
                      "description": "How long a download tunnel stays valid, in seconds.",
                      "defaultValue": "90"
                    },
                    "RATELIMIT_WINDOW": {
                      "isOptional": false,
                      "description": "Rate-limit window in seconds.",
                      "defaultValue": "60"
                    },
                    "API_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Address the API server binds to.",
                      "defaultValue": "0.0.0.0"
                    },
                    "PROCESSING_PRIORITY": {
                      "isOptional": false,
                      "description": "Process niceness for media processing.",
                      "defaultValue": "10"
                    },
                    "TUNNEL_RATELIMIT_MAX": {
                      "isOptional": false,
                      "description": "Max tunnel requests per window, per IP.",
                      "defaultValue": "40"
                    },
                    "SESSION_RATELIMIT_MAX": {
                      "isOptional": false,
                      "description": "Max session creations per window, per IP.",
                      "defaultValue": "10"
                    },
                    "FORCE_LOCAL_PROCESSING": {
                      "isOptional": false,
                      "description": "Processing mode.",
                      "defaultValue": "never"
                    },
                    "TUNNEL_RATELIMIT_WINDOW": {
                      "isOptional": false,
                      "description": "Tunnel rate-limit window in seconds.",
                      "defaultValue": "60"
                    },
                    "SESSION_RATELIMIT_WINDOW": {
                      "isOptional": false,
                      "description": "Session rate-limit window in seconds.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "web",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-10-10T10:14:37.282Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-10T08:54:07.999Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b3cb03737f694c23a836",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 37,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "web"
  }
}
