feat: implement billing, usage tracking, and administrative geocoding features in API with infrastructure updates
This commit is contained in:
+10
-10
@@ -38,29 +38,29 @@ services:
|
||||
|
||||
# Routing Engine: GraphHopper
|
||||
routing:
|
||||
image: israelhikingmap/graphhopper:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ./infrastructure/docker/graphhopper/Dockerfile
|
||||
container_name: map-routing
|
||||
platform: linux/amd64
|
||||
ports:
|
||||
- "8989:8080"
|
||||
environment:
|
||||
- JAVA_OPTS=-Xmx4g -Xms512m
|
||||
- JAVA_OPTS=-Xmx8g -Xms1g
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 6g
|
||||
memory: 10g
|
||||
volumes:
|
||||
- ./infrastructure/osm-data:/data
|
||||
- ./infrastructure/docker/graphhopper/config.yml:/graphhopper/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"]
|
||||
command: ["server", "/graphhopper/config.yml"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
interval: 60s
|
||||
timeout: 30s
|
||||
retries: 5
|
||||
start_period: 1200s
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
|
||||
Reference in New Issue
Block a user