Skip to content

TheBrain8791/traccar-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

Traccar in Docker

Traccar GPS Tracking System in Docker image.

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

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 \
    traccar/traccar:4.0 \
    /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 /var/docker/traccar/logs:/opt/traccar/logs:rw \
    -v /var/docker/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \
    traccar/traccar:4.0

Default JRE options:

  • -Xms512m
  • -Xmx512m
  • -Djava.net.preferIPv4Stack=true

About

Traccar Docker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%