chore: increase routing memory limits for CH graph build

This commit is contained in:
Hamza-Ayed
2026-07-26 23:36:17 +03:00
parent 3a49029ee4
commit 2f7c2066f7
+6 -3
View File
@@ -44,15 +44,18 @@ services:
ports:
- "8989:8080"
environment:
- JAVA_OPTS=-Xmx2g -Xms512m
- JAVA_OPTS=-Xmx4g -Xms512m
deploy:
resources:
limits:
memory: 3g
memory: 6g
volumes:
- ./infrastructure/osm-data:/data
- ./infrastructure/docker/graphhopper/config.yml:/graphhopper/config.yml
command: ["-i", "/data/master_map.osm.pbf", "-c", "config.yml"]
# مسار مطلق للـ config: المسار النسبي "config.yml" كان يُحل نسبةً إلى
# مجلد عمل الحاوية فيقرأ GraphHopper إعداداته الداخلية بدل ملفنا المركّب.
# الدليل في اللوج: "loaded graph at:/data/default-gh" بدل /data/graph-cache.
command: ["-i", "/data/master_map.osm.pbf", "-c", "/graphhopper/config.yml"]
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
interval: 30s