This is just a quick write up of how I have Graylog 2 running in Docker. 
I'm using Ubuntu 15.10 and the official Docker repository, and I added my 
user to the docker group.

I put all my Graylog data on the /graylog2 directory on the host, so each 
container has volumes mapped there.

These are my container creation scripts. I prefer to run the container with 
-t so I can watch it come up the first time.

graylog-mongo.sh:
#!/bin/sh
docker run -t \
        --name graylog-mongo            \
        -v /graylog2/data/mongo:/data/db  \
        mongo

graylog-es.sh:
#!/bin/sh
docker run -t   \
        --name graylog-es               \
        -v /graylog2/data/elasticsearch:/usr/share/elasticsearch/data   \
        elasticsearch:2.3               \  
        -Des.cluster.name="graylog"

graylog2docker.sh
#!/bin/sh
docker run -t \
        -p 9000:9000            \
        -p 9200:9200            \
        -p 12900:12900          \
        -p 1514:1514/udp        \
        -p 12201:12201          \
        -e GRAYLOG_REST_TRANSPORT_URI="http://<host outside IP>:12900"  \
        -e GRAYLOG_ROOT_PASSWORD_SHA2=<redacted>  \
        -e GRAYLOG_TIMEZONE=EST5EDT     \
        --link graylog-mongo:mongo      \
        --link graylog-es:elasticsearch \
        graylog2/server:2.0.0-beta.2-1

Elasticsearch is locked to version 2.3 and Graylog to version 
2.0.0-beta.2-1 with the docker image tags, and Mongo will use the latest 
version. I'm port forwarding 12201 for my nxlog connections and 1514 for 
syslog (greater than 1024 so non-root Docker can bind the port.) All good 
so far.

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/fcde616d-1b4e-4734-a911-643bf079c7b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to