From 13dfd1f5c826d0a50cb8d56102c1aff49048887a Mon Sep 17 00:00:00 2001 From: Maxim Zalysin Date: Mon, 23 Apr 2018 02:07:15 +0300 Subject: [PATCH 1/2] Fixes in README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index edaeb96..b63f707 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -Traccar +Traccar in Docker --- -Modern GPS Tracking Platform +Traccar GPS Tracking System in Docker image. Official website: Current version: **3.16** @@ -14,7 +14,7 @@ Current version: **3.16** - **3.14-alpine**, **3.14** ([alpine/Dockerfile](https://github.com/magna-z/docker-traccar/blob/8acfd19b9f4f060ca4ce7e09d35338b65069248b/alpine/Dockerfile)) [![](https://images.microbadger.com/badges/image/magnaz/traccar:3.14-alpine.svg)](https://microbadger.com/images/magnaz/traccar:3.14-alpine) - **3.14-debian** ([debian/Dockerfile](https://github.com/magna-z/docker-traccar/blob/8acfd19b9f4f060ca4ce7e09d35338b65069248b/debian/Dockerfile)) [![](https://images.microbadger.com/badges/image/magnaz/traccar:3.14-debian.svg)](https://microbadger.com/images/magnaz/traccar:3.14-debian) -### Create container example: +### Container creation example: 1. **Create work directories:** ```bash @@ -45,5 +45,5 @@ Current version: **3.16** -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 + magnaz/traccar ``` From 23f29f27cf17966ec6f7de56a9169d0e6199b0cd Mon Sep 17 00:00:00 2001 From: Maxim Zalysin Date: Mon, 23 Apr 2018 02:13:51 +0300 Subject: [PATCH 2/2] Add maximum heap size in default docker run command --- alpine/Dockerfile | 2 +- debian/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index ae6fc50..72cafa6 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -17,4 +17,4 @@ EXPOSE 8082 ENTRYPOINT ["java"] -CMD ["-Djava.net.preferIPv4Stack=true", "-Xms512m", "-jar", "tracker-server.jar", "conf/traccar.xml"] +CMD ["-Djava.net.preferIPv4Stack=true", "-Xms512m", "-Xmx512m", "-jar", "tracker-server.jar", "conf/traccar.xml"] diff --git a/debian/Dockerfile b/debian/Dockerfile index 10a7371..f248d07 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -13,4 +13,4 @@ EXPOSE 8082 ENTRYPOINT ["java"] -CMD ["-Djava.net.preferIPv4Stack=true", "-Xms512m", "-jar", "tracker-server.jar", "conf/traccar.xml"] +CMD ["-Djava.net.preferIPv4Stack=true", "-Xms512m", "-Xmx512m", "-jar", "tracker-server.jar", "conf/traccar.xml"]