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:
parent
1bf80b6ec3
commit
c15129a87e
@ -15,9 +15,9 @@ RUN set -xe \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
||||||
ENV OTR_TOPICS owntracks/#
|
|
||||||
ENV OTR_HOST iot.eclipse.org
|
ENV OTR_HOST iot.eclipse.org
|
||||||
ENV OTR_PORT 1883
|
ENV OTR_PORT 1883
|
||||||
|
ENV OTR_TOPICS owntracks/#
|
||||||
|
|
||||||
VOLUME $OTR_STORAGEDIR
|
VOLUME $OTR_STORAGEDIR
|
||||||
|
|
||||||
|
@ -13,7 +13,15 @@ ot-recorder:
|
|||||||
- "8083:8083"
|
- "8083:8083"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/spool/owntracks/recorder/store
|
- ./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
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Click [this][2] to generate a google map api key.
|
||||||
|
|
||||||
[1]: https://github.com/owntracks/recorder
|
[1]: https://github.com/owntracks/recorder
|
||||||
|
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1
|
||||||
|
@ -15,9 +15,9 @@ RUN set -xe \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
ENV OTR_STORAGEDIR /var/spool/owntracks/recorder/store
|
||||||
ENV OTR_TOPICS owntracks/#
|
|
||||||
ENV OTR_HOST iot.eclipse.org
|
ENV OTR_HOST iot.eclipse.org
|
||||||
ENV OTR_PORT 1883
|
ENV OTR_PORT 1883
|
||||||
|
ENV OTR_TOPICS owntracks/#
|
||||||
|
|
||||||
VOLUME $OTR_STORAGEDIR
|
VOLUME $OTR_STORAGEDIR
|
||||||
|
|
||||||
|
@ -4,4 +4,9 @@ ot-recorder:
|
|||||||
- "8083:8083"
|
- "8083:8083"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/spool/owntracks/recorder/store
|
- ./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
|
restart: always
|
||||||
|
@ -10,4 +10,4 @@ then
|
|||||||
ot-recorder --initialize
|
ot-recorder --initialize
|
||||||
fi
|
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
|
||||||
|
@ -4,4 +4,9 @@ ot-recorder:
|
|||||||
- "8083:8083"
|
- "8083:8083"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/var/spool/owntracks/recorder/store
|
- ./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
|
restart: always
|
||||||
|
@ -10,4 +10,4 @@ then
|
|||||||
ot-recorder --initialize
|
ot-recorder --initialize
|
||||||
fi
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user