Deploy & Host Tracker : GPS Tracking Software - Free and Open Source System | Railway

Traccar — Self-Hosted GPS Tracking on Railway

One-click Traccar, the open-source GPS tracking platform that speaks 150+ device protocols. This template provisions the production pattern: the Traccar web UI and API on your Railway domain, device ingest (OsmAnd protocol, TCP 5055) published through a Railway TCP proxy, and a MySQL database for persistence. All secrets are generated per deploy and the whole stack needs zero deploy-form inputs — click deploy, log in, add your devices.

What you get

First steps after deploying

  1. Open your Railway domain and log in with admin / admin.
  2. Change the admin password immediately (Account screen). Do not skip this — the default is public knowledge.
  3. In the UI, add a device and give it a unique ID (for example 123456).
  4. Send a test position from any device or even a browser — the OsmAnd protocol accepts a plain HTTP GET through your domain: https://your-railway-domain/client-proxy/?id=123456&lat=48.137&lon=11.575. The position appears on the map instantly.
  5. For real devices, configure them with the ingest URL from step 4 (devices that append their own query parameters should use the TCP proxy host:port with the /client-proxy/ path). For phone tracking, install the OsmAnd app and enable its online tracking plugin against the same URL.

Costs: about 5–10 USD/month at hobby scale (Traccar roughly 1 GB RAM, MySQL roughly 1 GB RAM, plus two small volumes).

Deploy and Host

About Hosting

Hosting Traccar on Railway gives you a managed GPS tracking server without maintaining a VPS: two services are provisioned for you — traccar (pinned official image, web UI on 8082 via your Railway domain, device ingest on TCP 5055 via a Railway TCP proxy, persistent volume for logs and uploads) and MySQL (persistent volume at /var/lib/mysql, private networking only). Traccar runs in env-var mode against MySQL — the configuration upstream recommends for production — with the JDBC URL, database password, and DB host wired as variable expressions, so credentials rotate per deploy and nothing sensitive is baked in. The boot wrapper waits for MySQL to be reachable, creates the traccar database, and symlinks the log directory into the persistent volume, so a cold deploy never races its own database.

Why Deploy

Common Use Cases

Dependencies for

Traccar depends on one service provisioned by this template:

Deployment Dependencies