{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4a27f13c-b3c6-411e-a597-e04cde2dd8d3",
    "slug": "livekit",
    "name": "LiveKit - Voice Agent",
    "description": "Deploy and Host LiveKit with Railway",
    "url": "https://railway.com/deploy/livekit",
    "upstream": {
      "repo_url": "https://github.com/yuting1214/LiveKit-Template"
    }
  },
  "services": [
    {
      "name": "voice-agent",
      "source": {
        "repo": "https://github.com/yuting1214/LiveKit-Template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "livekit-server",
      "source": {
        "repo": "https://github.com/yuting1214/LiveKit-Template"
      },
      "needs_volume": false,
      "tcp_ports": [
        7882
      ],
      "http": true
    },
    {
      "name": "web-frontend",
      "source": {
        "repo": "https://github.com/yuting1214/LiveKit-Template"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LIVEKIT_URL",
      "service": "voice-agent",
      "description": "Provide a value for LIVEKIT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "voice-agent",
      "description": "Your OpenAI API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "voice-agent",
      "description": "Provide a value for LIVEKIT_API_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "voice-agent",
      "description": "Provide a value for LIVEKIT_API_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis externally",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PORT",
      "service": "livekit-server",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "livekit-server",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "livekit-server",
      "description": "Provide a value for LIVEKIT_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "livekit-server",
      "description": "Provide a value for LIVEKIT_API_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_NODE_IP_MODE",
      "service": "livekit-server",
      "description": "Provide a value for LIVEKIT_NODE_IP_MODE.",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "LIVEKIT_URL",
      "service": "web-frontend",
      "description": "Provide a value for LIVEKIT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "web-frontend",
      "description": "Provide a value for LIVEKIT_API_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "web-frontend",
      "description": "Provide a value for LIVEKIT_API_SECRET.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "livekit"
      }
    },
    "cli": "railway deploy --template livekit",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4a27f13c-b3c6-411e-a597-e04cde2dd8d3",
            "serializedConfig": {
              "services": {
                "1dcde88b-4987-40f5-97d0-74a6a2f32587": {
                  "name": "voice-agent",
                  "source": {
                    "repo": "yuting1214/LiveKit-Template",
                    "branch": null,
                    "rootDirectory": "voice-agent/"
                  },
                  "variables": {
                    "LIVEKIT_URL": {
                      "description": "",
                      "defaultValue": "ws://${{livekit-server.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "OPENAI_API_KEY": {
                      "description": "Your OpenAI API key",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "defaultValue": "${{livekit-server.LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "defaultValue": "${{livekit-server.LIVEKIT_API_SECRET}}"
                    }
                  }
                },
                "36fcbb73-663c-493c-8477-c05346c35545": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.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\""
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Connection string for connecting to redis externally",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "36fcbb73-663c-493c-8477-c05346c35545": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "7c55bbf8-d05d-403f-a577-9b168e60cef2": {
                  "name": "livekit-server",
                  "source": {
                    "repo": "yuting1214/LiveKit-Template",
                    "branch": null,
                    "rootDirectory": "livekit-server/"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "defaultValue": "{{LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "defaultValue": "{{LIVEKIT_API_SECRET}}"
                    },
                    "LIVEKIT_NODE_IP_MODE": {
                      "defaultValue": "auto"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "7882": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "d09ffa2f-360a-46b9-91e2-345a92803075": {
                  "name": "web-frontend",
                  "source": {
                    "repo": "yuting1214/LiveKit-Template",
                    "branch": null,
                    "rootDirectory": "web-frontend/"
                  },
                  "variables": {
                    "LIVEKIT_URL": {
                      "description": "",
                      "defaultValue": "wss://${{livekit-server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "defaultValue": "${{livekit-server.LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "defaultValue": "${{livekit-server.LIVEKIT_API_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T19:51:58.426Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7dc11db5bd964824afe5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 119,
    "typical_build_seconds": 46,
    "typical_start_seconds": 10,
    "slowest_service": "voice-agent"
  }
}
