📡 Setup Traccar — Self-Hosted GPS Tracking Server
Deploy Traccar on Ubuntu with Docker — an open-source GPS tracking platform for vehicles, phones, and devices, with live maps, history, and geofencing on your own server, web UI on port 8217.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/traccar/traccar-ubuntu.sh
chmod +x traccar-ubuntu.sh
sudo bash traccar-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/iot/traccar/traccar-ubuntu.sh
2 Make it Executable
chmod +x traccar-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and starts Traccar with the web interface on port 8217 and a device tracking port on 5155, keeping its data and logs in mounted volumes. The first user you register becomes the admin.
sudo bash traccar-ubuntu.sh
4 Open the Web UI and Register
Open Traccar, register the first user (which becomes the administrator), then configure a GPS tracker or a phone app (Traccar Client / OsmAnd) to report to your server on port 5155:
http://<your-server-ip>:8217
Ports Used
| Port | Purpose |
|---|---|
| 8217 | Web UI (host → container 8082) |
| 5155 | Device reporting port (host → container 5055) — for trackers and apps |
| first user | The first user to register becomes the admin |