{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1bc85f38-300c-4685-a0bd-186b16b7ef6d",
    "slug": "Z6dOtj",
    "name": "Soketi v1",
    "description": "Deploy an open-source Pusher-compatible server.",
    "url": "https://railway.com/deploy/Z6dOtj",
    "upstream": {
      "repo_url": "https://github.com/soketi/soketi-railway-deploy-example"
    }
  },
  "services": [
    {
      "name": "soketi",
      "source": {
        "repo": "https://github.com/soketi/soketi-railway-deploy-example"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "bitnami/redis"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "soketi",
      "description": "Used for Railway: The port on which Soketi runs on.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SOKETI_PUBLIC_PORT",
      "service": "soketi",
      "description": "The port on which the application runs for the public. Defaults to 443 (SSL)",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "SOKETI_DB_REDIS_HOST",
      "service": "soketi",
      "description": "The Redis host to connect to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SOKETI_DB_REDIS_PORT",
      "service": "soketi",
      "description": "The Redis instance port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SOKETI_INTERNAL_HOST",
      "service": "soketi",
      "description": "Railway specific: host name to use to identify the instance in the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SOKETI_INTERNAL_PORT",
      "service": "soketi",
      "description": "The port on which Soketi runs on in the private network.",
      "secret": false,
      "strategy": "default",
      "default": "6001"
    },
    {
      "key": "SOKETI_ADAPTER_DRIVER",
      "service": "soketi",
      "description": "Set the Horizontal Scaling adapter. Recommended: redis",
      "secret": false,
      "strategy": "default",
      "default": "redis"
    },
    {
      "key": "SOKETI_DEFAULT_APP_ID",
      "service": "soketi",
      "description": "The default app ID.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOKETI_DEFAULT_APP_KEY",
      "service": "soketi",
      "description": "The default app key to connect to.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOKETI_DB_REDIS_PASSWORD",
      "service": "soketi",
      "description": "The Redis instance password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SOKETI_DB_REDIS_USERNAME",
      "service": "soketi",
      "description": "The Redis instance username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SOKETI_DEFAULT_APP_SECRET",
      "service": "soketi",
      "description": "The default app secret to connect to.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SOKETI_DEFAULT_APP_ENABLE_CLIENT_MESSAGES",
      "service": "soketi",
      "description": "Enable client messages",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default user to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "URL to connect to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public URL to connect to Redis, needed for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "Z6dOtj"
      }
    },
    "cli": "railway deploy --template Z6dOtj",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1bc85f38-300c-4685-a0bd-186b16b7ef6d",
            "serializedConfig": {
              "services": {
                "2df78a55-b609-4a64-a444-c62208a3d904": {
                  "name": "soketi",
                  "build": {},
                  "deploy": {
                    "healthcheckPath": "/"
                  },
                  "source": {
                    "repo": "https://github.com/soketi/soketi-railway-deploy-example",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Used for Railway: The port on which Soketi runs on.",
                      "defaultValue": "${{SOKETI_INTERNAL_PORT}}"
                    },
                    "SOKETI_PUBLIC_PORT": {
                      "isOptional": false,
                      "description": "The port on which the application runs for the public. Defaults to 443 (SSL)",
                      "defaultValue": "443"
                    },
                    "SOKETI_DB_REDIS_HOST": {
                      "isOptional": false,
                      "description": "The Redis host to connect to.",
                      "defaultValue": "${{REDISHOST}}"
                    },
                    "SOKETI_DB_REDIS_PORT": {
                      "isOptional": false,
                      "description": "The Redis instance port.",
                      "defaultValue": "${{REDISPORT}}"
                    },
                    "SOKETI_INTERNAL_HOST": {
                      "isOptional": false,
                      "description": "Railway specific: host name to use to identify the instance in the private network.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SOKETI_INTERNAL_PORT": {
                      "isOptional": false,
                      "description": "The port on which Soketi runs on in the private network.",
                      "defaultValue": "6001"
                    },
                    "SOKETI_ADAPTER_DRIVER": {
                      "isOptional": false,
                      "description": "Set the Horizontal Scaling adapter. Recommended: redis",
                      "defaultValue": "redis"
                    },
                    "SOKETI_DEFAULT_APP_ID": {
                      "isOptional": false,
                      "description": "The default app ID.",
                      "defaultValue": "{{SOKETI_DEFAULT_APP_ID}}"
                    },
                    "SOKETI_DEFAULT_APP_KEY": {
                      "isOptional": false,
                      "description": "The default app key to connect to.",
                      "defaultValue": "{{SOKETI_DEFAULT_APP_KEY}}"
                    },
                    "SOKETI_DB_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "The Redis instance password.",
                      "defaultValue": "${{REDISPASSWORD}}"
                    },
                    "SOKETI_DB_REDIS_USERNAME": {
                      "isOptional": false,
                      "description": "The Redis instance username.",
                      "defaultValue": "${{REDISUSER}}"
                    },
                    "SOKETI_DEFAULT_APP_SECRET": {
                      "isOptional": false,
                      "description": "The default app secret to connect to.",
                      "defaultValue": "{{SOKETI_DEFAULT_APP_SECRET}}"
                    },
                    "SOKETI_DEFAULT_APP_ENABLE_CLIENT_MESSAGES": {
                      "isOptional": true,
                      "description": "Enable client messages",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "febfc3dd-e807-43f4-9875-d3c5ca41f189": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "image": "bitnami/redis"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default user to connect to Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Redis over the private network.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "${{ REDIS_PASSWORD }}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public URL to connect to Redis, needed for the Data panel.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "febfc3dd-e807-43f4-9875-d3c5ca41f189": {
                      "mountPath": "/bitnami"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "soketi",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T13:55:47.340Z",
  "success_rate_30d": 0.3333,
  "validation": {
    "last_run_id": "run_3b5dd0fdf61e4a2d9f0f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "BUILDING,CRASHED"
      }
    ],
    "typical_ready_seconds": 65,
    "typical_build_seconds": 22,
    "typical_start_seconds": 11,
    "slowest_service": "soketi"
  }
}
