aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-03-07 23:45:25 -0600
committerIván Ávalos <avalos@disroot.org>2024-03-07 23:45:25 -0600
commit4058783ae3d6a31929e047c2440efc3b785675d5 (patch)
treeb5d4cebb01c40f0cc597624f816f5f748b0d0fec /docker-compose.yml
parent85eaea7c721de89a07e75a6ac5fd4c960aed9fdc (diff)
downloadtrackermap-server-4058783ae3d6a31929e047c2440efc3b785675d5.tar.gz
trackermap-server-4058783ae3d6a31929e047c2440efc3b785675d5.tar.bz2
trackermap-server-4058783ae3d6a31929e047c2440efc3b785675d5.zip
Add Dockerfile and docker-compose.yml
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 000000000..434f12de0
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,17 @@
+version: '3'
+
+services:
+ trackermap:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ # Configure memory limits here!
+ command: ["/usr/bin/java", "-Xms1g", "-Xms1g", "-Xss1m", "-jar", "tracker-server.jar", "-c", "conf/traccar.xml"]
+ ports:
+ - 8082:8082
+ - 5001-5211:5001-5211
+ volumes:
+ - ./conf:/opt/traccar/conf:ro
+ - ./data:/opt/traccar/data
+ - ./logs:/opt/traccar/logs
+ - ./media:/opt/traccar/media