Don't have a VPS yet? We recommend DigitalOcean. Use following link to register an account, receive a small credit and support our open source project:
Install Docker Engine with the Compose plugin using the official install script, which tracks upstream releases more closely than the Ubuntu-packaged version
curl -fsSL https://get.docker.com | sh
Disable the Docker userland proxy so the large port range below doesn't spawn a process per port
echo '{"userland-proxy": false}' > /etc/docker/daemon.json && systemctl restart docker
Create directories for persistent data and logs
mkdir -p /opt/traccar/data /opt/traccar/logs
Download the official Docker Compose file that runs Traccar together with a MySQL database
curl -o /opt/traccar/compose.yaml https://raw.githubusercontent.com/traccar/traccar/master/docker/compose/traccar-mysql.yaml
Start Traccar
cd /opt/traccar && docker compose up -d
Traccar will be available on port 8082. See the Docker page for more configuration options, including a TimescaleDB (PostgreSQL) compose example.
Traccar is now running over plain HTTP. As a next step, see the Secure Connection guide to serve it securely with a free automatic SSL certificate.
DigitalOcean · AWS · Google Cloud · Azure · Vultr · Linode · Hetzner · OVHcloud · Contabo · Oracle Cloud