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.

To run with admin web interface:

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