feat: add sovereign map server migration runbook, seeding scripts, and tactical maneuver compare view

This commit is contained in:
Hamza-Ayed
2026-09-26 13:24:51 +03:00
parent 5028d20881
commit 9aa45ad605
9 changed files with 2232 additions and 6 deletions
+11 -5
View File
@@ -4,6 +4,7 @@ services:
db:
image: postgis/postgis:15-3.3
container_name: map-db
restart: unless-stopped
platform: linux/amd64 # Ensure compatibility on Mac Silicon
environment:
POSTGRES_USER: ${POSTGRES_USER}
@@ -25,6 +26,7 @@ services:
redis:
image: redis:7-alpine
container_name: map-redis
restart: unless-stopped
platform: linux/amd64
ports:
- "6381:6379"
@@ -42,18 +44,18 @@ services:
context: .
dockerfile: ./infrastructure/docker/graphhopper/Dockerfile
container_name: map-routing
restart: unless-stopped
platform: linux/amd64
ports:
- "8989:8080"
environment:
# 7.8GB إجمالي على السيرفر. باقي الحاويات ~1.3GB + النظام ~0.5GB.
# Xmx5g كان ينتج RSS ~6GB فيصطدم بالسقف ويُقتل بالـ OOM لحظة عودة باقي
# الحاويات — رغم أن البناء نفسه ينجح حين تكون موقوفة. 4g تترك هامشاً حقيقياً.
- JAVA_OPTS=-Xmx4g -Xms1g
# Memory tuning for GraphHopper:
# Pre-built graph (783MB) runs stably on 2.5GB heap, preventing kernel OOM killer
- JAVA_OPTS=-Xmx3g -Xms512m
deploy:
resources:
limits:
memory: 6g
memory: 4g
volumes:
- ./infrastructure/osm-data:/data
- graphhopper-srtm-cache:/data/srtm-cache
@@ -93,6 +95,7 @@ services:
context: .
dockerfile: ./infrastructure/docker/api/Dockerfile
container_name: map-api
restart: unless-stopped
platform: linux/amd64
ports:
- "3200:3200"
@@ -132,6 +135,7 @@ services:
martin:
image: maplibre/martin:latest
container_name: map-martin
restart: unless-stopped
platform: linux/amd64
ports:
- "3202:3000"
@@ -181,6 +185,7 @@ services:
context: .
dockerfile: ./infrastructure/docker/web/Dockerfile
container_name: map-web
restart: unless-stopped
platform: linux/amd64
ports:
- "3201:5173"
@@ -201,6 +206,7 @@ services:
context: .
dockerfile: ./infrastructure/docker/dashboard/Dockerfile
container_name: map-dashboard
restart: unless-stopped
platform: linux/amd64
ports:
- "3204:80"