43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
version: "3"
|
|
services:
|
|
webapp:
|
|
image: traccar/traccar
|
|
restart: never
|
|
# read_only: true
|
|
# tmpfs:
|
|
# - /tmp
|
|
# - /var
|
|
# - /run
|
|
hostname: traccar.lan.ddnsgeek.com
|
|
# networks:
|
|
# - traefik_default
|
|
deploy:
|
|
# resources:
|
|
# limits:
|
|
# cpus: '0.05'
|
|
# memory: 100m
|
|
restart_policy:
|
|
condition: on-failure
|
|
max_attempts: 5
|
|
# labels:
|
|
# - "traefik.http.routers.traccar.rule=Host(`traccar.lan.ddnsgeek.com`)"
|
|
# - "traefik.enable=true"
|
|
# - "traefik.http.routers.traccar.entrypoints=websecure"
|
|
# - "traefik.http.routers.traccar.tls.certresolver=myresolver"
|
|
# - "io.portainer.accesscontrol.public"
|
|
# - "traefik.http.routers.traccar.middlewares=error-pages-middleware"
|
|
# - "traefik.http.services.traccar.loadbalancer.server.port=8888"
|
|
ports:
|
|
- 80:8082
|
|
- 5000-5150:5000-5150
|
|
- 5000-5150:5000-5150/udp
|
|
volumes:
|
|
- ./logs:/opt/traccar/logs:rw
|
|
- ./traccar.xml:/opt/traccar/conf/traccar.xml:ro
|
|
# healthcheck:
|
|
# test: "curl --fail http://localhost || exit 1"
|
|
|
|
#networks:
|
|
# traefik_default:
|
|
# external: true
|