Set up databases to store and analyze streams content

This tutorial assumes you are using linux or Mac OS X.

Confirm Docker is healthy

We‘ll assume you’ve got docker up and running.

Run from your command line:

$ docker ps

If you see a (possibly empty) list of running containers, you are good.

Run Elasticsearch

Elasticsearch is a great database for storing content from your streams.

$ docker run -d --name elasticsearch elasticsearch

Add Elasticsearch container details to your configuration

cd $STREAMS export DOCKERHOST=$(docker-machine ip)

Put the following into elasticsearch.conf

include "reference.conf"
elasticsearch {
    hosts = [
      ${DOCKERHOST}
    ]
    protocol = "tcp"
    port = 9300
    index = "streams"
    indexes = [
        "streams"
    ]
    types = [
        "page"
        "post"
    ]
}