Add real-time messaging capabilities to your existing architecture without rewriting your backend. This self-hosted, language-agnostic server handles persistent connections over various transports, including WebSocket, SSE, and WebTransport, making it ideal for interactive applications. Whether you are building live chat systems, multiplayer games, or streaming AI responses, you get reliable message delivery with minimal latency. The system is built for high performance, capable of delivering millions of messages per minute on standard hardware. It integrates seamlessly with your current stack and scales horizontally using brokers like Redis or NATS.\n\nKey capabilities include:\n* Flexible authentication to secure your real-time channels.\n* Channel history and online presence for building rich chat and collaboration tools.\n* Delta updates to reduce bandwidth consumption.\n* Server-side publication filtering to minimize processing overhead.
services:
centrifugo:
image: centrifugo/centrifugo:v5
container_name: centrifugo
ulimits:
nofile:
soft: 65536
hard: 65536
ports:
- "8000:8000"
environment:
CENTRIFUGO_TOKEN_HMAC_SECRET_KEY: ${CENTRIFUGO_TOKEN_HMAC_SECRET_KEY}
CENTRIFUGO_API_KEY: ${CENTRIFUGO_API_KEY}
CENTRIFUGO_ADMIN_PASSWORD: ${CENTRIFUGO_ADMIN_PASSWORD}
CENTRIFUGO_ADMIN_SECRET: ${CENTRIFUGO_ADMIN_SECRET}
CENTRIFUGO_ADMIN: "true"
volumes:
- ./data:/centrifugo/data
restart: unless-stoppedCENTRIFUGO_TOKEN_HMAC_SECRET_KEY=your_strong_token_hmac_secret_key
CENTRIFUGO_API_KEY=your_strong_api_key
CENTRIFUGO_ADMIN_PASSWORD=your_strong_admin_password
CENTRIFUGO_ADMIN_SECRET=your_strong_admin_secretAuto-fetched about 18 hours ago
Auto-fetched about 18 hours ago