
Centrifugo
Scalable real-time messaging server
Deploy Centrifugo in 3 Steps
Connect Your VPS
Add your server credentials to Server Compass
Select Centrifugo
Choose from our template library
Deploy & Configure
Fill in settings and click Deploy
Deploy Centrifugo via Command Line
Prefer the command line? Follow this step-by-step guide to deploy Centrifugo manually on your VPS.
SSH into Your Server
Launch your preferred terminal and connect to your VPS using SSH.
# Log into your server
ssh root@<your-server-ip>
# If using key-based auth
ssh -i ~/.ssh/my-key root@<your-server-ip>First time? Docker not installed? Run: curl -fsSL https://get.docker.com | sh
Create Working Directory
Prepare a directory for your application files and configuration.
# Create and navigate to project directory
mkdir -p ~/apps/centrifugo
cd ~/apps/centrifugoConfigure Your Containers
Create the Docker Compose configuration file with these contents:
services:
centrifugo:
image: centrifugo/centrifugo:latest
ports:
- "8000:8000"
command: centrifugo -c config.json
environment:
- CENTRIFUGO_TOKEN_HMAC_SECRET_KEY=<your-token-secret>
- CENTRIFUGO_API_KEY=<your-api-key>
- CENTRIFUGO_ADMIN_PASSWORD=<your-admin-password>
- CENTRIFUGO_ADMIN=true
volumes:
- centrifugo_data:/centrifugo
restart: unless-stopped
volumes:
centrifugo_data:
PORTHost port(default: 8000)TOKEN_SECRETToken secretAPI_KEYAPI keyADMIN_PASSWORDAdmin passwordDeploy with Docker Compose
Launch the application stack using Docker Compose.
# Deploy the application
docker compose up -d
# Check container health
docker compose ps
# Monitor logs
docker compose logs -f --tail=100Open Required Ports
Enable external access by opening the necessary port.
# Allow the application port through firewall
sudo ufw allow 8000/tcp
sudo ufw reload
# Access your app at:
# http://your-server-ip:8000There's an easier way. Meet Server Compass.
Deploy Centrifugo with a beautiful UI instead. No SSH, no YAML editing, no terminal commands. Just click, configure, and deploy in under 3 minutes.
- Intuitive dashboard
- Deploy in 3 minutes
- Free SSL included
- Blue-green deploys
- Real-time logs
- Version history
After Deployment
After deploying Centrifugo with Server Compass, complete these steps to finish setup
Test WebSocket connection
Configure channels
Integrate with backend
Need help? Check out our documentation for detailed guides.
Centrifugo FAQ
Common questions about self-hosting Centrifugo
How do I deploy Centrifugo with Server Compass?
Simply download Server Compass, connect to your VPS, and select Centrifugo from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.
What are the system requirements for Centrifugo?
Centrifugo requires a minimum of 128MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.
Can I migrate my existing Centrifugo data?
Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Centrifugo backup and restore procedures.
How do I update Centrifugo to the latest version?
Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Centrifugo image will be pulled and deployed with zero downtime.
Is Centrifugo free to self-host?
Centrifugo is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.
Related Templates
View all Development
PocketBase
Open-source backend in a single file with realtime database, auth, and file storage

Appwrite
Open-source backend-as-a-service - self-hosted Firebase alternative

Parse Server
Open-source backend framework with dashboard

Supabase
Full Supabase self-hosted with Kong, GoTrue Auth, Realtime, and Studio
Ready to Self-Host Centrifugo?
Download Server Compass and deploy Centrifugo to your VPS in under 3 minutes. No Docker expertise required.
Download Server Compass