Building a Managed AI Hosting Platform with Rails 8, Docker, and Traefik

Platform Architecture and Stack
A developer built a managed hosting platform for AI applications from scratch in two weeks using Rails 8. The platform currently serves 50 paying customers. The technical stack includes a Rails 8 monolith, PostgreSQL database, Sidekiq for background processing (configured with 5 processes and 50 threads), Clockwork for scheduling tasks, and Hetzner Cloud API for spinning up customer VPS instances.
Technical Challenges and Solutions
The developer specifically mentions addressing "ugly parts" including Docker configuration headaches, implementing Server-Sent Events (SSE) streaming through Traefik reverse proxy, and handling customer instances that crash during off-hours (specifically at 2 AM).
For context: Rails 8 includes Hotwire by default for real-time features, which may relate to the SSE streaming implementation. Traefik is a modern reverse proxy that can handle WebSocket and SSE connections natively, though configuration can be complex. Hetzner Cloud provides affordable VPS instances popular for self-hosted deployments. Sidekiq with 5 processes and 50 threads suggests significant background job processing capacity for handling customer workloads.
The platform appears to be a case study in building infrastructure-as-a-service specifically for AI applications, with the developer sharing practical experience around deployment, monitoring, and incident response.
📖 Read the full source: r/openclaw
👀 See Also

VP of Engineering Builds Four Applications in One Week Using Claude AI
A VP of Engineering used Claude AI to build a VPN application, iOS native app with Go backend, Next.js landing website, and React admin dashboard in one week without writing code directly. The user previously attempted a Jira alternative with Claude a year ago but encountered limitations with complex applications.

Practical Lessons from Building a 350K-Line Codebase Solo with AI Agents
A developer shares concrete engineering insights from building a 356K-line production codebase in 52 days using AI agents, including how codebase structure affects agent output and why strong typing is essential.

OpenClaw Grocery Order Mistake: Unit Confusion with MCP Server
A user gave OpenClaw their credit card to handle weekly grocery runs via an MCP server. After three months of flawless orders, it recently ordered 2 kg of garlic instead of 2 heads, because the product page defaulted to kilograms.

Opus Handles Frontend Cleanup by Delegating to Subagents from a Playbook
A user tuned one page, documented the fixes in an ADR playbook, then had Opus split the remaining 9 pages among 3 subagents, touching 41 files with near-perfect Lighthouse results.