Hornet-docker offers a dockerization of Hornet, a realtime engine originally built for Fresc.
You can find all informations about Hornet on its Github repository.
Build this dockerfile by :
$ docker build -t hornet .
Run the built hornet image by :
$ docker run --name some-hornet -p 8187:8187 -d hornet
You can also get the image from the Nectify DockerHub :
$ docker run --name some-hornet -p 8187:8187 -d nectify/hornet
Connect the Hornet container from your application :
$ docker run --name some-app --link some-hornet:hornet -d application-that-uses-hornet
Docker will provide to your
some-app container some useful environment variables with informations about Hornet address :
HORNET_PORT_8187_TCP_ADDR: IP address of the container
HORNET_PORT_8187_TCP_PORT: port number for Hornet
8187: default port for Hornet
6379: default port for Redis (from its Dockerfile)
Get the logs
Supervisor provides logs for Hornet and Redis.
These logs are in the directory
Share it with your Docker host by mounting it as a volume :
$ docker run --name some-hornet -p 8187:8187 -v /path/from/host:/var/log/supervisor -d hornet