{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cd788255-8161-404d-9c9c-d10477ef6933",
    "slug": "livekit-server",
    "name": "LiveKit",
    "description": "Realtime audio and video server for apps, calls and voice agents",
    "url": "https://railway.com/deploy/livekit-server",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/livekit-railway"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Egress",
      "source": {
        "repo": "https://github.com/gridalpha/livekit-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "LiveKit",
      "source": {
        "repo": "https://github.com/gridalpha/livekit-railway"
      },
      "needs_volume": false,
      "tcp_ports": [
        7881
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Egress",
      "description": "Health check port, serves /",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LIVEKIT_WS_URL",
      "service": "Egress",
      "description": "Media server WebSocket URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "Egress",
      "description": "Must match the media server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_S3_BUCKET",
      "service": "Egress",
      "description": "Bucket recordings upload to",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_S3_REGION",
      "service": "Egress",
      "description": "Bucket placement region",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_S3_SECRET",
      "service": "Egress",
      "description": "Bucket secret access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_REDIS_HOST",
      "service": "Egress",
      "description": "Same Redis as the media server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_REDIS_PORT",
      "service": "Egress",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_S3_ENDPOINT",
      "service": "Egress",
      "description": "Object storage endpoint URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "Egress",
      "description": "Must match the media server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_S3_ACCESS_KEY",
      "service": "Egress",
      "description": "Bucket access key id",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_REDIS_PASSWORD",
      "service": "Egress",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EGRESS_REDIS_USERNAME",
      "service": "Egress",
      "description": "Redis ACL username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "Egress",
      "description": "Dockerfile built for this service",
      "secret": false,
      "strategy": "default",
      "default": "egress/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "LiveKit",
      "description": "HTTP and WebSocket signalling port",
      "secret": false,
      "strategy": "default",
      "default": "7880"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "LiveKit",
      "description": "API key clients sign tokens with",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_LOG_LEVEL",
      "service": "LiveKit",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "LiveKit",
      "description": "Token signing secret, 32+ chars",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_REDIS_HOST",
      "service": "LiveKit",
      "description": "Enables distributed room routing",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_REDIS_PORT",
      "service": "LiveKit",
      "description": "Redis port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_REDIS_PASSWORD",
      "service": "LiveKit",
      "description": "Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_REDIS_USERNAME",
      "service": "LiveKit",
      "description": "Redis ACL username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "LiveKit",
      "description": "Dockerfile built for this service",
      "secret": false,
      "strategy": "default",
      "default": "server/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "livekit-server"
      }
    },
    "cli": "railway deploy --template livekit-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cd788255-8161-404d-9c9c-d10477ef6933",
            "serializedConfig": {
              "buckets": {
                "2ac05d81-0096-4fbd-8829-7421581e10c1": {
                  "name": "livekit-egress"
                }
              },
              "services": {
                "1345b2a5-92ff-491c-8b36-e90dc55fdda4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "1345b2a5-92ff-491c-8b36-e90dc55fdda4": {
                      "mountPath": "/data"
                    }
                  }
                },
                "3be16187-5de8-49b6-a5ef-8f3c015a19dc": {
                  "icon": "https://cdn.simpleicons.org/livekit/white.svg",
                  "name": "Egress",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/livekit-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health check port, serves /",
                      "defaultValue": "8080"
                    },
                    "LIVEKIT_WS_URL": {
                      "isOptional": false,
                      "description": "Media server WebSocket URL",
                      "defaultValue": "wss://${{LiveKit.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "isOptional": false,
                      "description": "Must match the media server",
                      "defaultValue": "${{LiveKit.LIVEKIT_API_KEY}}"
                    },
                    "EGRESS_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket recordings upload to",
                      "defaultValue": "${{livekit-egress.BUCKET}}"
                    },
                    "EGRESS_S3_REGION": {
                      "isOptional": false,
                      "description": "Bucket placement region",
                      "defaultValue": "${{livekit-egress.REGION}}"
                    },
                    "EGRESS_S3_SECRET": {
                      "isOptional": false,
                      "description": "Bucket secret access key",
                      "defaultValue": "${{livekit-egress.SECRET_ACCESS_KEY}}"
                    },
                    "EGRESS_REDIS_HOST": {
                      "isOptional": false,
                      "description": "Same Redis as the media server",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "EGRESS_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "EGRESS_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Object storage endpoint URL",
                      "defaultValue": "${{livekit-egress.ENDPOINT}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "isOptional": false,
                      "description": "Must match the media server",
                      "defaultValue": "${{LiveKit.LIVEKIT_API_SECRET}}"
                    },
                    "EGRESS_S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key id",
                      "defaultValue": "${{livekit-egress.ACCESS_KEY_ID}}"
                    },
                    "EGRESS_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "EGRESS_REDIS_USERNAME": {
                      "isOptional": false,
                      "description": "Redis ACL username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile built for this service",
                      "defaultValue": "egress/Dockerfile"
                    }
                  }
                },
                "838764d2-5af6-4e47-9381-5cf25d047a44": {
                  "icon": "https://cdn.simpleicons.org/livekit/white.svg",
                  "name": "LiveKit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/livekit-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP and WebSocket signalling port",
                      "defaultValue": "7880"
                    },
                    "LIVEKIT_API_KEY": {
                      "isOptional": false,
                      "description": "API key clients sign tokens with",
                      "defaultValue": "{{LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "LIVEKIT_API_SECRET": {
                      "isOptional": false,
                      "description": "Token signing secret, 32+ chars",
                      "defaultValue": "{{LIVEKIT_API_SECRET}}"
                    },
                    "LIVEKIT_REDIS_HOST": {
                      "isOptional": false,
                      "description": "Enables distributed room routing",
                      "defaultValue": "${{Redis.REDISHOST}}"
                    },
                    "LIVEKIT_REDIS_PORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "${{Redis.REDISPORT}}"
                    },
                    "LIVEKIT_REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password",
                      "defaultValue": "${{Redis.REDISPASSWORD}}"
                    },
                    "LIVEKIT_REDIS_USERNAME": {
                      "isOptional": false,
                      "description": "Redis ACL username",
                      "defaultValue": "${{Redis.REDISUSER}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile built for this service",
                      "defaultValue": "server/Dockerfile"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "7881": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7880": {
                        "port": 7880
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "LiveKit",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T14:34:08.837Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_1cb8b87b2ae14714bcaf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 133
  }
}
