From 7d6823e7f4d6961ed3bbf2efe22f4058ab892b27 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 22 Jul 2022 18:17:51 -0700 Subject: [PATCH] Init --- jafner-tools/config/traccar/.env | 2 ++ .../config/traccar/docker-compose.yml | 21 ++++++++++++++ jafner-tools/config/traccar/traccar.xml | 28 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 jafner-tools/config/traccar/.env create mode 100644 jafner-tools/config/traccar/docker-compose.yml create mode 100644 jafner-tools/config/traccar/traccar.xml diff --git a/jafner-tools/config/traccar/.env b/jafner-tools/config/traccar/.env new file mode 100644 index 0000000..1342ff7 --- /dev/null +++ b/jafner-tools/config/traccar/.env @@ -0,0 +1,2 @@ +DOCKER_DATA=/home/joey/data/traccar + diff --git a/jafner-tools/config/traccar/docker-compose.yml b/jafner-tools/config/traccar/docker-compose.yml new file mode 100644 index 0000000..f60413d --- /dev/null +++ b/jafner-tools/config/traccar/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3.1' +services: + traccar: + image: traccar/traccar + container_name: traccar_traccar + restart: "no" + ports: + - 5000-5150:5000:5150/tcp + - 5000-5150:5000:5150/udp + volumes: + - ${DOCKER_DATA}/logs:/opt/traccar/logs:rw + - ./traccar.xml:/opt/traccar/conf/traccar.xml:ro + labels: + - traefik.http.routers.traccar.rule=Host(`traccar.jafner.net`) + - traefik.http.routers.traccar.tls.certresolver=lets-encrypt + - traefik.port=8082 + networks: + - web +networks: + web: + external: true diff --git a/jafner-tools/config/traccar/traccar.xml b/jafner-tools/config/traccar/traccar.xml new file mode 100644 index 0000000..e52dbed --- /dev/null +++ b/jafner-tools/config/traccar/traccar.xml @@ -0,0 +1,28 @@ + + + + + + + ./conf/default.xml + + + + org.h2.Driver + jdbc:h2:./data/database + Marina2939 + rQCz7nXo8kc3c2moceoMKArtJzP4FQsbFBoC8XNFamHRcEhx + + + + \ No newline at end of file