Go to file
2018-04-23 11:23:32 +12:00
alpine Add maximum heap size in default docker run command 2018-04-23 02:13:51 +03:00
debian Add maximum heap size in default docker run command 2018-04-23 02:13:51 +03:00
README.md Fixes in README.md 2018-04-23 02:12:11 +03:00

Traccar in Docker

Traccar GPS Tracking System in Docker image.

Official website: https://www.traccar.org
Current version: 3.16

Current tags:

Container creation example:

  1. Create work directories:

    mkdir -p /var/docker/traccar/logs
    
  2. Get default traccar.xml:

    docker run \
    --rm \
    --entrypoint cat \
    magnaz/traccar \
    /opt/traccar/conf/traccar.xml > /var/docker/traccar/traccar.xml
    
  3. Edit traccar.xml: https://www.traccar.org/configuration-file/

  4. Create container:

    docker run \
    -d --restart always \
    --name traccar \
    --hostname traccar \
    -p 80:8082 \
    -p 5000-5150:5000-5150 \
    -p 5000-5150:5000-5150/udp \
    -v /etc/timezone:/etc/timezone:ro \
    -v /etc/localtime:/etc/localtime:ro \
    -v /var/docker/traccar/logs:/opt/traccar/logs:rw \
    -v /var/docker/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \
    magnaz/traccar