You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5924e9a5a8 | 7 years ago | |
---|---|---|
Dockerfile | 7 years ago | |
README.md | 7 years ago |
README.md
Traccar server on Alpine Linux
Free and Open Source GPS Tracking Platform
Current version: 3.12
Official website: https://www.traccar.org
Create container example:
-
Create work directories:
mkdir -p /var/docker/traccar/logs
-
Get default traccar.xml:
docker run \ --rm \ --entrypoint cat \ magnaz/traccar:3.12 \ /opt/traccar/conf/traccar.xml > /var/docker/traccar/traccar.xml
-
Edit traccar.xml: https://www.traccar.org/configuration-file/
-
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 \ image: magnaz/traccar:3.12