Levelrail
Skip to content

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 ​

ServiceImageContainer portsVolumes
traccartraccar/traccar:6.68082none
traccar-dbpostgres:16-alpinenone
traccar_postgres_data -> /var/lib/postgresql/data

Environment variables ​

ServiceVariableValue
traccarCONFIG_USE_ENVIRONMENT_VARIABLESPreset in the template
traccarDATABASE_DRIVERPreset in the template
traccarDATABASE_PASSWORDGenerated at deploy
traccarDATABASE_URLPreset in the template
traccarDATABASE_USERPreset in the template
traccar-dbPOSTGRES_DBPreset in the template
traccar-dbPOSTGRES_PASSWORDGenerated at deploy
traccar-dbPOSTGRES_USERPreset 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-traccar

See 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.

Released under the Apache 2.0 License.