diff --git a/homelab/jafner-tools/config/traccar/.env b/homelab/jafner-tools/config/traccar/.env new file mode 100644 index 00000000..1342ff7c --- /dev/null +++ b/homelab/jafner-tools/config/traccar/.env @@ -0,0 +1,2 @@ +DOCKER_DATA=/home/joey/data/traccar + diff --git a/homelab/jafner-tools/config/traccar/docker-compose.yml b/homelab/jafner-tools/config/traccar/docker-compose.yml new file mode 100644 index 00000000..f60413de --- /dev/null +++ b/homelab/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/homelab/jafner-tools/config/traccar/traccar.xml b/homelab/jafner-tools/config/traccar/traccar.xml new file mode 100644 index 00000000..e52dbed8 --- /dev/null +++ b/homelab/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