From 2f7c2066f7861bbda5f8ab9f3b4d25d5e8934616 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Sun, 26 Jul 2026 23:36:17 +0300 Subject: [PATCH] chore: increase routing memory limits for CH graph build --- docker-compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1152d15..bbabd42 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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