{
  "manifest_version": "1.0.0",
  "template": {
    "id": "08947883-ba07-4778-a905-3f68ff50f639",
    "slug": "owncast-server",
    "name": "Owncast",
    "description": "Live video streaming and chat server you run yourself",
    "url": "https://railway.com/deploy/owncast-server",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/owncast-railway"
    }
  },
  "services": [
    {
      "name": "owncast",
      "source": {
        "repo": "https://github.com/gridalpha/owncast-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "tcp_ports": [
        1935
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "owncast",
      "description": "HTTP port for player, chat and admin",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNCAST_RTMP_PORT",
      "service": "owncast",
      "description": "Container port for RTMP ingest",
      "secret": false,
      "strategy": "default",
      "default": "1935"
    },
    {
      "key": "OWNCAST_SERVER_URL",
      "service": "owncast",
      "description": "Public URL Owncast advertises",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OWNCAST_STREAM_KEY",
      "service": "owncast",
      "description": "Stream key your encoder uses",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OWNCAST_ADMIN_PASSWORD",
      "service": "owncast",
      "description": "Password for the admin user",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "owncast-server"
      }
    },
    "cli": "railway deploy --template owncast-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "08947883-ba07-4778-a905-3f68ff50f639",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c3fc243e-2fdf-4007-a45b-b64948bae1b2": {
                  "icon": "https://raw.githubusercontent.com/owncast/owncast/v0.2.5/static/img/logo.png",
                  "name": "owncast",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/owncast-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port for player, chat and admin",
                      "defaultValue": "8080"
                    },
                    "OWNCAST_RTMP_PORT": {
                      "isOptional": false,
                      "description": "Container port for RTMP ingest",
                      "defaultValue": "1935"
                    },
                    "OWNCAST_SERVER_URL": {
                      "isOptional": false,
                      "description": "Public URL Owncast advertises",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OWNCAST_STREAM_KEY": {
                      "isOptional": false,
                      "description": "Stream key your encoder uses",
                      "defaultValue": "{{OWNCAST_STREAM_KEY}}"
                    },
                    "OWNCAST_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the admin user",
                      "defaultValue": "{{OWNCAST_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "1935": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "c3fc243e-2fdf-4007-a45b-b64948bae1b2": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:37:22.769Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1807a86fa02046e18d73",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 77,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "owncast"
  }
}
