Skip to content

Docker image

Centrifugo server has docker image available on Docker Hub.

docker pull centrifugo/centrifugo

Run:

docker run --ulimit nofile=65536:65536 -v /host/dir/with/config/file:/centrifugo -p 8000:8000 centrifugo/centrifugo centrifugo -c config.json

Note that docker allows to set nofile limits in command-line arguments which is pretty important to handle lots of simultaneous persistent connections and not run out of open file limit.