1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

update ot-recorder

This commit is contained in:
kev 2017-04-01 14:30:23 +08:00
parent 1bf80b6ec3
commit c15129a87e
7 changed files with 22 additions and 4 deletions

View File

@ -15,9 +15,9 @@ RUN set -xe \
&& rm -rf /var/lib/apt/lists/*
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
ENV OTR_TOPICS owntracks/#
ENV OTR_HOST iot.eclipse.org
ENV OTR_PORT 1883
ENV OTR_TOPICS owntracks/#
VOLUME $OTR_STORAGEDIR

View File

@ -13,7 +13,15 @@ ot-recorder:
- "8083:8083"
volumes:
- ./data:/var/spool/owntracks/recorder/store
environment:
- OTR_HOST=iot.eclipse.org
- OTR_PORT=1883
- OTR_TOPICS=owntracks/username/#
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
restart: always
```
Click [this][2] to generate a google map api key.
[1]: https://github.com/owntracks/recorder
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1

View File

@ -15,9 +15,9 @@ RUN set -xe \
&& rm -rf /var/lib/apt/lists/*
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
ENV OTR_TOPICS owntracks/#
ENV OTR_HOST iot.eclipse.org
ENV OTR_PORT 1883
ENV OTR_TOPICS owntracks/#
VOLUME $OTR_STORAGEDIR

View File

@ -4,4 +4,9 @@ ot-recorder:
- "8083:8083"
volumes:
- ./data:/var/spool/owntracks/recorder/store
environment:
- OTR_HOST=iot.eclipse.org
- OTR_PORT=1883
- OTR_TOPICS=owntracks/username/#
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
restart: always

View File

@ -10,4 +10,4 @@ then
ot-recorder --initialize
fi
exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS

View File

@ -4,4 +4,9 @@ ot-recorder:
- "8083:8083"
volumes:
- ./data:/var/spool/owntracks/recorder/store
environment:
- OTR_HOST=iot.eclipse.org
- OTR_PORT=1883
- OTR_TOPICS=owntracks/username/#
- OTR_OPTIONS=--browser-apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
restart: always

View File

@ -10,4 +10,4 @@ then
ot-recorder --initialize
fi
exec ot-recorder --http-host 0.0.0.0 $OTR_TOPICS
exec ot-recorder --http-host 0.0.0.0 $OTR_OPTIONS $OTR_TOPICS