mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update ot-recorder
This commit is contained in:
@@ -7,7 +7,11 @@ location data published via MQTT (or HTTP) by the OwnTracks apps.
|
|||||||
## docker-compose.yml
|
## docker-compose.yml
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
ot-recorder:
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
|
||||||
|
recorder:
|
||||||
image: vimagick/ot-recorder
|
image: vimagick/ot-recorder
|
||||||
ports:
|
ports:
|
||||||
- "8083:8083"
|
- "8083:8083"
|
||||||
@@ -15,21 +19,41 @@ ot-recorder:
|
|||||||
- ./data:/var/spool/owntracks/recorder/store
|
- ./data:/var/spool/owntracks/recorder/store
|
||||||
environment:
|
environment:
|
||||||
- OTR_HOST=iot.eclipse.org
|
- OTR_HOST=iot.eclipse.org
|
||||||
- OTR_PORT=8883
|
- OTR_PORT=1883
|
||||||
- OTR_USER=username
|
- OTR_USER=username
|
||||||
- OTR_PASS=password
|
- OTR_PASS=password
|
||||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
|
||||||
- OTR_TOPICS=owntracks/#
|
- OTR_TOPICS=owntracks/#
|
||||||
- OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
# OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||||
- OTR_OPTIONS=--qos 0
|
# OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
restart: always
|
# OTR_OPTIONS=--debug
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
image: owntracks/frontend
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
||||||
|
environment:
|
||||||
|
- SERVER_HOST=recorder
|
||||||
|
- SERVER_PORT=8083
|
||||||
|
restart: unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
:warning: Some variables don't work (`OTR_QOS`) as [document][3] said.
|
:warning: Some variables don't work (`OTR_QOS`, `OTR_CAFILE`) as [document][3] said.
|
||||||
You can pass any options to process via `OTR_OPTIONS` environment variable.
|
You can pass any options to process via `OTR_OPTIONS` environment variable.
|
||||||
|
|
||||||
Click [this][2] to generate a google map api key.
|
Click [this][2] to generate a google map api key.
|
||||||
|
|
||||||
|
## up and running
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker-compse up -d
|
||||||
|
$ tree data
|
||||||
|
$ docker-compose exec recorder bash
|
||||||
|
>>> ocat --list
|
||||||
|
{"results":["foo"]}
|
||||||
|
>>> ocat --user foo --device bar
|
||||||
|
```
|
||||||
|
|
||||||
[1]: https://github.com/owntracks/recorder
|
[1]: https://github.com/owntracks/recorder
|
||||||
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1
|
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1
|
||||||
[3]: https://github.com/owntracks/recorder#configuration-file
|
[3]: https://github.com/owntracks/recorder#configuration-file
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ services:
|
|||||||
- ./data:/var/spool/owntracks/recorder/store
|
- ./data:/var/spool/owntracks/recorder/store
|
||||||
environment:
|
environment:
|
||||||
- OTR_HOST=iot.eclipse.org
|
- OTR_HOST=iot.eclipse.org
|
||||||
- OTR_PORT=8883
|
- OTR_PORT=1883
|
||||||
- OTR_USER=username
|
- OTR_USER=username
|
||||||
- OTR_PASS=password
|
- OTR_PASS=password
|
||||||
- OTR_TOPICS=owntracks/#
|
- OTR_TOPICS=owntracks/#
|
||||||
- OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
# OTR_CAFILE=/etc/ssl/certs/DST_Root_CA_X3.pem
|
||||||
# OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
# OTR_BROWSERAPIKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
# OTR_OPTIONS=--debug
|
# OTR_OPTIONS=--debug
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user