Jafner.net/homelab/jafner-tools/config/traccar/docker-compose.yml

25 lines
748 B
YAML
Raw Normal View History

2022-07-22 18:17:51 -07:00
version: '3.1'
services:
traccar:
image: traccar/traccar
container_name: traccar_traccar
restart: "no"
ports:
2022-08-12 14:20:54 -07:00
- 5170:5170/tcp
- 5170:5170/udp
2022-07-22 18:17:51 -07:00
volumes:
- ${DOCKER_DATA}/logs:/opt/traccar/logs:rw
2022-07-22 18:24:27 -07:00
- ${DOCKER_DATA}/data:/opt/traccar/data:rw
2022-07-22 18:17:51 -07:00
- ./traccar.xml:/opt/traccar/conf/traccar.xml:ro
labels:
2022-07-22 18:21:02 -07:00
- traefik.http.routers.traccar.rule=Host(`traccar.jafner.tools`)
2022-07-22 18:17:51 -07:00
- traefik.http.routers.traccar.tls.certresolver=lets-encrypt
- traefik.http.routers.traccar.tls.options=tls12@file
- traefik.http.routers.traccar.middlewares=securityheaders@file
- traefik.http.services.traccar.loadbalancer.server.port=8082
2022-07-22 18:17:51 -07:00
networks:
- web
networks:
web:
external: true