---
title: "Deploy Centrifugo for Moodle"
description: "Web sockets support in Moodle (tool_realtime)"
category: "Other"
url: https://railway.com/deploy/centrifugo-for-moodle
---

# Deploy Centrifugo for Moodle

Web sockets support in Moodle (tool_realtime)

**[Deploy Centrifugo for Moodle on Railway](https://railway.com/template/centrifugo-for-moodle)**

- **Creator:** LMSCloud
- **Category:** Other
- **Total deploys:** 11

## Template content

### centrifugo https://devicons.railway.app/centrifugo

- **Image:** centrifugo/centrifugo:v6
- **Start command:** `centrifugo`
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Centrifugo for Moodle on Railway

This template deploys a pre-configured [Centrifugo](https://centrifugal.dev/) server ready to connect to your Moodle site via the [tool_realtime](https://lmscloud.io/plugins/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.

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](https://lmscloud.io/plugins/mod_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](https://lmscloud.io/plugins/tool_realtime) plugin installed
- The Centrifugo subplugin for tool_realtime (included with the plugin)

### Deployment Dependencies

- [Centrifugo](https://centrifugal.dev/) — the open-source real-time messaging server deployed by this template
- [tool_realtime](https://lmscloud.io/plugins/moodle-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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/centrifugo-for-moodle
