mirror of
https://github.com/traccar/traccar-docker
synced 2024-11-15 00:13:02 +00:00
41a4f456cc
Update to version 4.8 |
||
---|---|---|
alpine | ||
debian | ||
README.md |
Traccar in Docker
Traccar GPS Tracking System in Docker image.
Official website: https://www.traccar.org
Current tags:
- 4.8-alpine, 4.8, alpine or latest (alpine/Dockerfile)
- 4.8-debian, debian (debian/Dockerfile)
- 4.7-alpine, 4.7 (alpine/Dockerfile)
- 4.7-debian (debian/Dockerfile)
- 4.6-alpine, 4.6 (alpine/Dockerfile)
- 4.6-debian (debian/Dockerfile)
- 4.5-alpine, 4.5 (alpine/Dockerfile)
- 4.5-debian (debian/Dockerfile)
- 4.4-alpine, 4.4 (alpine/Dockerfile)
- 4.4-debian (debian/Dockerfile)
- 4.3-alpine, 4.3 (alpine/Dockerfile)
- 4.3-debian (debian/Dockerfile)
- 4.2-alpine, 4.2 (alpine/Dockerfile)
- 4.2-debian (debian/Dockerfile)
- 4.1-alpine, 4.1 (alpine/Dockerfile)
- 4.1-debian (debian/Dockerfile)
- 4.0-alpine, 4.0 (alpine/Dockerfile)
- 4.0-debian (debian/Dockerfile)
- 3.17-alpine, 3.17 (alpine/Dockerfile)
- 3.17-debian (debian/Dockerfile)
- 3.16-alpine, 3.16 (alpine/Dockerfile)
- 3.16-debian (debian/Dockerfile)
Container creation example:
-
Create work directories:
mkdir -p /var/docker/traccar/logs
-
Get default traccar.xml:
docker run \ --rm \ --entrypoint cat \ traccar/traccar:latest \ /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 /var/docker/traccar/logs:/opt/traccar/logs:rw \ -v /var/docker/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \ traccar/traccar:latest
Default JRE options:
- -Xms512m
- -Xmx512m
- -Djava.net.preferIPv4Stack=true