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

22 lines
545 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:
- 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