
Deploy Centrifugo for Moodle
Web sockets support in Moodle (tool_realtime)
centrifugo
Just deployed
Deploy and Host Centrifugo for Moodle on Railway
This template deploys a pre-configured Centrifugo server ready to connect to your Moodle site via the tool_realtime plugin. It enables real-time WebSocket communication so Moodle plugins can push live updates to users' browsers without page reloads.
About Hosting Centrifugo for Moodle
This template handles the entire Centrifugo setup for you. All security keys and configuration are randomly generated at deploy time — the only variable you need to provide is MOODLE_WEBHOOK_URL, which you can find in your Moodle site under Site administration → Plugins → Real time events → Centrifugo.
Once deployed, copy the generated service URL and keys into the Centrifugo plugin settings in Moodle. Use the built-in Test settings page to verify the connection. From that point on, any Moodle plugin that uses the tool_realtime framework will automatically benefit from WebSocket delivery instead of PHP polling.
Common Use Cases
- Live quiz games — plugins like Kahoodle use real-time events to synchronise questions, answers, and leaderboards across all participants instantly.
- Collaborative activities — any activity where multiple users interact on the same page (e.g., shared canvases, live polls) benefits from instant event delivery via WebSockets.
- Live notifications — push server-side events (grade updates, new forum posts, content changes) to connected browsers the moment they happen, without waiting for the next poll interval.
Dependencies for Centrifugo for Moodle Hosting
- A Moodle site (4.5 or higher) with the tool_realtime plugin installed
- The Centrifugo subplugin for tool_realtime (included with the plugin)
Deployment Dependencies
- Centrifugo — the open-source real-time messaging server deployed by this template
- tool_realtime — the Moodle plugin that provides the real-time events framework
Why Deploy Centrifugo for Moodle on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Centrifugo for Moodle on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
centrifugo
centrifugo/centrifugo:v6MOODLE_WEBHOOK_URL