Self-host Traccar with Docker
An open-source GPS tracking platform supporting over 170 device protocols.
This page describes the Levelrail template for Traccar (IoT). It deploys the services below as one Docker Compose app on your own server.
Project site: https://www.traccar.org/documentation/.Recommended memory: about 1024 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
traccar | traccar/traccar:6.6 | 8082 | none |
traccar-db | postgres:16-alpine | none | traccar_postgres_data -> /var/lib/postgresql/data |
Environment variables
| Service | Variable | Value |
|---|---|---|
traccar | CONFIG_USE_ENVIRONMENT_VARIABLES | Preset in the template |
traccar | DATABASE_DRIVER | Preset in the template |
traccar | DATABASE_PASSWORD | Generated at deploy |
traccar | DATABASE_URL | Preset in the template |
traccar | DATABASE_USER | Preset in the template |
traccar-db | POSTGRES_DB | Preset in the template |
traccar-db | POSTGRES_PASSWORD | Generated at deploy |
traccar-db | POSTGRES_USER | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Traccar with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Traccar. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy traccar --name my-traccarSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More IoT templates
All templates are listed in the self-host gallery.