feat: 天地图瓦片缓存(tile-cache)、拓扑标注助手与文档更新

- tile-cache: 瓦片缓存服务(vec/cva)、启动探针、详细日志、上游超时可配置(UPSTREAM_TIMEOUT_MS)
- central: docker-compose 集成 tile-cache,env.example 增加 TILE_CACHE_* / TIANDITU_TK
- topology-editor: 天地图/缓存加载、GPS 安全来源错误提示、TIANDITU 文档(403/白名单、localhost 测试说明)
- doc: README 部署步骤与 GPS 安全来源说明,TIANDITU_CONFIG 完善

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Super User
2026-02-25 11:11:38 -05:00
parent 84d2bcc2cf
commit 72a5bf30b4
32 changed files with 2496 additions and 1941 deletions

View File

@@ -82,6 +82,41 @@ services:
- "--retentionPeriod=${VICTORIAMETRICS_RETENTION_PERIOD:-30d}"
- "--httpListenAddr=:${VICTORIAMETRICS_PORT:-8428}"
# 拓扑标注助手(上传/下载 targets.csvH5 采集 GPS + 天地图校验)
topology-editor:
build:
context: ..
dockerfile: topology-editor/Dockerfile
image: topology-editor:local
container_name: topology-editor
restart: unless-stopped
environment:
- PORT=4080
- TILE_CACHE_URL=http://tile-cache:4090
ports:
- "${TOPOLOGY_EDITOR_PORT:-4080}:4080"
mem_limit: "128m"
# 天地图瓦片缓存(节省 key 免费量;可手动清空缓存后重新拉取)
tile-cache:
build:
context: ..
dockerfile: tile-cache/Dockerfile
image: tile-cache:local
container_name: tile-cache
restart: unless-stopped
environment:
- PORT=4090
- TIANDITU_TK=${TIANDITU_TK:-}
- CACHE_DIR=/cache
- CACHE_TTL_DAYS=${TILE_CACHE_TTL_DAYS:-7}
- UPSTREAM_TIMEOUT_MS=${TILE_CACHE_UPSTREAM_TIMEOUT_MS:-15000}
volumes:
- ${TILE_CACHE_DATA_DIR:-./data/tile-cache}:/cache
ports:
- "${TILE_CACHE_PORT:-4090}:4090"
mem_limit: "128m"
# 定义网络配置(默认使用已存在的 traefik 网络)
networks: