From d50890d97dbf8ee9dff81e3c2a0ed9ef05405994 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Mon, 25 Jan 2016 11:17:52 +0100 Subject: [PATCH] doc --- README.md | 2 ++ run.sh | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100755 run.sh diff --git a/README.md b/README.md index 4d83f9f..5bba639 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ ## Dockerfile for OwnTracks Recorder and Mosquitto + +This is a Dockerfile for the [OwnTracks Recorder](https://github.com/owntracks/recorder) which includes the [Mosquitto broker](http://mosquitto.org) as well as the Recorder proper. Documentation for running this is in the [Booklet](http://owntracks.org/booklet/clients/recorder/). diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..4fb402e --- /dev/null +++ b/run.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cthostname="owntracks.example.org" + +docker run -v /tmp/o2:/owntracks -p 11883:1883 -p 18883:8883 -p 8083:8083 \ + --name "owntracks-recorder" \ + --hostname "${cthostname}" \ + -e MQTTHOSTNAME="${cthostname}" \ + -e IPLIST="192.168.1.1 127.0.0.83 192.168.1.82" \ + -e HOSTLIST="foo.example.com bar.org.example.com ${cthostname}" \ + owntracks/recorderd