Files
lidar_rendu/docker-compose.maps.override.yml.example
Antoine fb892ea9f2 Translate the whole project to English and fix outdated comments and help
Comments, docstrings, logs, CLI help, map UI, legends, PDF sheet, scripts,
compose files and AGENTS.md are now English. Data keys stay unchanged
(relief_oriente, densite_sol, visualisations/, API JSON keys, link params).
Wrong comments and help defaults found along the way are corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 23:16:45 +02:00

50 lines
2.1 KiB
Plaintext

# Local override for the lightweight map (Raspberry Pi) - see docs/DEPLOY_WEBAPP.md.
#
# Copy to docker-compose.maps.override.yml (ignored by git), then adapt the
# addresses, the cache folder and the Traefik routing:
# cp docker-compose.maps.override.yml.example docker-compose.maps.override.yml
# docker compose -f docker-compose.maps.yml -f docker-compose.maps.override.yml up -d --build
#
# Requires Compose >= 2.24 (!override tag).
name: lidar-maps
services:
maps:
# Replace ./output with a folder on a bigger volume (owned by uid 1000:
# mkdir -p /srv/lidar/output && chown 1000:1000 /srv/lidar/output)
volumes: !override
- /srv/lidar/output:/data/output
# Memory cap: a runaway render cannot take the machine down
mem_limit: 1g
memswap_limit: 1g
environment:
- TZ=Europe/Paris
# Processing machine (docker-compose.worker.yml)
- LIDAR_SOURCE_URL=http://192.168.1.50:8973 # inventory + source tiles
- LIDAR_GENERATION_URL=http://192.168.1.50:8973 # delegated generation
- LIDAR_MAPS_URL=http://192.168.1.50:8973 # tiles downloaded ahead of time
# Same value as LIDAR_API_TOKEN on the worker, if it has one
# - LIDAR_REMOTE_TOKEN=shared-secret
# Networks allowed to start a generation (default: localhost + private ranges)
# - LIDAR_REGEN_CIDR=192.168.1.0/24
# Small machine: browsing renders nothing, the pyramid is
# maintained in the background
- LIDAR_TILE_WORKERS=1
- LIDAR_TILE_SOURCE_CACHE_MB=64
- LIDAR_TILE_CACHE_ONLY=1
- LIDAR_TILE_BACKGROUND=1
- LIDAR_TILE_BACKGROUND_PAUSE=1.0
# Optional Traefik routing (HTTPS: required for GPS on phones).
# Without Traefik, remove networks/labels and the final networks block.
networks: [default, proxy]
labels:
- "traefik.enable=true"
- "traefik.http.routers.lidar-maps.rule=Host(`lidar.example.fr`)"
- "traefik.http.routers.lidar-maps.entrypoints=websecure"
- "traefik.http.routers.lidar-maps.tls.certresolver=myresolver"
- "traefik.http.services.lidar-maps.loadbalancer.server.port=8975"
networks:
proxy:
name: proxy
external: true