mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
update ot-recorder
This commit is contained in:
parent
37bc217e6e
commit
a08c2712ae
@ -17,6 +17,8 @@ RUN set -xe \
|
||||
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
||||
ENV OTR_HOST iot.eclipse.org
|
||||
ENV OTR_PORT 1883
|
||||
ENV OTR_HTTPHOST 0.0.0.0
|
||||
ENV OTR_HTTPPORT 8083
|
||||
ENV OTR_TOPICS owntracks/#
|
||||
|
||||
VOLUME $OTR_STORAGEDIR
|
||||
|
@ -15,12 +15,18 @@ ot-recorder:
|
||||
- ./data:/var/spool/owntracks/recorder/store
|
||||
environment:
|
||||
- OTR_HOST=iot.eclipse.org
|
||||
- OTR_PORT=1883
|
||||
- OTR_TOPICS=owntracks/username/#
|
||||
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_PORT=8883
|
||||
- OTR_USER=username
|
||||
- OTR_PASS=password
|
||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||
- OTR_TOPICS=owntracks/#
|
||||
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_OPTIONS=--qos 0
|
||||
restart: always
|
||||
```
|
||||
|
||||
You can pass any options to process via `OTR_OPTIONS` environment variable.
|
||||
|
||||
Click [this][2] to generate a google map api key.
|
||||
|
||||
[1]: https://github.com/owntracks/recorder
|
||||
|
@ -17,6 +17,8 @@ RUN set -xe \
|
||||
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
||||
ENV OTR_HOST iot.eclipse.org
|
||||
ENV OTR_PORT 1883
|
||||
ENV OTR_HTTPHOST 0.0.0.0
|
||||
ENV OTR_HTTPPORT 8083
|
||||
ENV OTR_TOPICS owntracks/#
|
||||
|
||||
VOLUME $OTR_STORAGEDIR
|
||||
|
@ -6,7 +6,11 @@ ot-recorder:
|
||||
- ./data:/var/spool/owntracks/recorder/store
|
||||
environment:
|
||||
- OTR_HOST=iot.eclipse.org
|
||||
- OTR_PORT=1883
|
||||
- OTR_TOPICS=owntracks/username/#
|
||||
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_PORT=8883
|
||||
- OTR_USER=username
|
||||
- OTR_PASS=password
|
||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||
- OTR_TOPICS=owntracks/#
|
||||
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_OPTIONS=--qos 0
|
||||
restart: always
|
||||
|
@ -10,4 +10,4 @@ then
|
||||
ot-recorder --initialize
|
||||
fi
|
||||
|
||||
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS
|
||||
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS
|
||||
|
@ -6,7 +6,11 @@ ot-recorder:
|
||||
- ./data:/var/spool/owntracks/recorder/store
|
||||
environment:
|
||||
- OTR_HOST=iot.eclipse.org
|
||||
- OTR_PORT=1883
|
||||
- OTR_TOPICS=owntracks/username/#
|
||||
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_PORT=8883
|
||||
- OTR_USER=username
|
||||
- OTR_PASS=password
|
||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||
- OTR_TOPICS=owntracks/#
|
||||
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
- OTR_OPTIONS=--qos 0
|
||||
restart: always
|
||||
|
@ -10,4 +10,4 @@ then
|
||||
ot-recorder --initialize
|
||||
fi
|
||||
|
||||
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS
|
||||
exec ot-recorder --http-host $OTR_HTTPHOST --http-port $OTR_HTTPPORT $OTR_OPTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user