> ## Content Index
> Fetch the complete content index at: https://www.oransblog.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to setup selfhosted owntracks server
- URL: https://www.oransblog.com/owntracks/
- Published: 2022-01-06T00:30:47.000Z
- Updated: 2026-10-29T05:56:57.000Z
- Description: This is a tutorial on how to create a gps tracker for yourself, and see the path youve gone over the course of a day or year, the software im going to use is called OpenTracks and is a open-source free tracking software. it is self-hosted, (COOL!) and has a good android app (a must IMO).
- Author: Oran C
- Tags: gps, docker, software, install, tutorial, hacking, hacking-ish, #Import 2026-11-12 01:14

This is a tutorial on how to create a gps tracker for yourself, and see the path youve gone over the course of a day or year, the software im going to use is called OpenTracks and is a open-source free tracking software. it is self-hosted, (COOL!) and has a good android app (a must IMO).  
  
Requirements: you must know how to use docker

![](https://www.oransblog.com/content/images/2022/01/image-3.png)

# Install Owntracks server

[owntracks/recorder - Docker Image | Docker Hub](https://hub.docker.com/r/owntracks/recorder?ref=oransblog.com)

[Docker - OwnTracks Booklet](https://owntracks.org/booklet/clients/recorder/?ref=oransblog.com)

# Note: using test.mosquitto.org means anyone on the net can access your gps data, if you dont really care or are just testing go ahead, but youve been warned. 

### i did this because i didnt want to have to setup tls with mqtt because tls is always somehow painful to setup....

```bash
ssh root@orans.dev
docker volume create recorder_store

docker run -it -p 8083:8083 -p 1883:1883   -v recorder_store:/store -e OTR_HOST=test.mosquitto.org  owntracks/recorder

```

![](https://www.oransblog.com/content/images/2022/01/image.png)

![](https://www.oransblog.com/content/images/2022/01/image-1.png)

# How to run for production (IE run with reboot, and in background as a daemon)

```bash
docker run -d --restart=always -p 8083:8083 -p 1883:1883   -v recorder_store:/store -e OTR_HOST=test.mosquitto.org  owntracks/recorder

```

![](https://www.oransblog.com/content/images/2022/01/image-8.png)

![](https://www.oransblog.com/content/images/2022/01/image-3.png)

# install mqtt (docker)

[Docker Hub![](https://hub.docker.com/favicon.ico)](https://hub.docker.com/%5F/eclipse-mosquitto?ref=oransblog.com)

```bash
mkdir -p /mosquitto/config
touch /mosquitto/config
touch /mosquitto/data
touch /mosquitto/log
```

![](https://www.oransblog.com/content/images/2022/01/image-4.png)

```bash
docker run -it -p 1883:1883 -p 9001:9001  -v /mosquitto/data -v /mosquitto/log eclipse-mosquitto
```

# now host it and point to your own mqtt server

```bash

# or use locally hosted version
docker run -d -p 8083:8083 -p 1883:1883  -v recorder_store:/store -e OTR_HOST=mqtt_broker owntracks/recorder
```

### Note the above method i didnt end up using

![](https://www.oransblog.com/content/images/2022/01/GeorgeJungleGIF.gif)

# Found something interesting!

### turns out im not the only one who thought of this! and it looks like other people are also using this same mqtt server!

you can see where they are currently on the globe!

![](https://www.oransblog.com/content/images/2022/01/image-5.png)

![](https://www.oransblog.com/content/images/2022/01/image-6.png)

# Wait what?

![](https://www.oransblog.com/content/images/2022/01/WhiteGuyWhatGIF.gif)

# Oh wait theres more...

### you can also see there exact location in realtime, and what their phone batteries level is!

![](https://www.oransblog.com/content/images/2022/01/image-7.png)

# Happy tracking!

![](https://www.oransblog.com/content/images/2022/01/ThatsAllFolksEndingGIF.gif)

![](https://www.oransblog.com/content/images/2021/12/oran.jpg) 

# Author

by oran collins  
github.com/wisehackermonkey  
![](https://www.oransblog.com/content/images/2021/12/image-16.png)