This commit is contained in:
Hamza-Ayed
2026-03-20 02:14:50 +03:00
parent 65ce6a0ba2
commit 6e6ee55d03
47 changed files with 14706 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# Use official Node.js image
FROM node:20-alpine
WORKDIR /app
# Install dependencies placeholder
# سيتم تثبيت الاعتمادات لاحقاً
COPY apps/api/package*.json ./
RUN npm install
COPY apps/api/ .
RUN npm run build
EXPOSE 3200
CMD ["npm", "run", "start:prod"]
@@ -0,0 +1,25 @@
graphhopper:
datareader.file: /data/jordan-latest.osm.pbf
graph.location: /data/graph-cache
import.osm.ignored_highways: ""
graph.encoded_values: road_class,road_environment,max_speed,road_access,surface
profiles:
- name: car
custom_model:
distance_influence: 70
priority:
- if: "true"
multiply_by: 1.0
speed:
- if: "true"
limit_to: 100
profiles_ch:
- profile: car
server:
application_connectors:
- type: http
port: 8989
bind_host: 0.0.0.0
@@ -0,0 +1,26 @@
{
"options": {
"paths": {
"root": "/data",
"mbtiles": ""
},
"domains": [
"localhost",
"127.0.0.1"
]
},
"styles": {
"osm-bright": {
"style": "osm-bright/style.json",
"tilejson": {
"type": "overlay",
"bounds": [34.9, 29.1, 39.3, 33.4]
}
}
},
"data": {
"v3": {
"mbtiles": "jordan.mbtiles"
}
}
}
+13
View File
@@ -0,0 +1,13 @@
# Use official Node.js image
FROM node:20-alpine
WORKDIR /app
# Install dependencies placeholder
# سيتم تثبيت الاعتمادات لاحقاً
COPY apps/web/package*.json ./
RUN npm install
COPY apps/web/ .
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host"]
View File
+33
View File
@@ -0,0 +1,33 @@
#!/bin/bash
# script to download Jordan OSM data
# نص برمجبي لتحميل بيانات الخرائط للأردن
set -e
DATA_DIR="./infrastructure/osm-data"
PBF_URL="https://download.geofabrik.de/asia/jordan-latest.osm.pbf"
echo "📍 Starting Jordan Map Setup..."
echo "📍 البدء في إعداد خرائط الأردن..."
mkdir -p $DATA_DIR
if [ ! -f "$DATA_DIR/jordan-latest.osm.pbf" ]; then
echo "📥 Downloading Jordan OSM PBF from Geofabrik..."
echo "📥 جاري تحميل بيانات الخرائط من Geofabrik..."
curl -L $PBF_URL -o "$DATA_DIR/jordan-latest.osm.pbf"
else
echo "✅ Jordan PBF already exists."
echo "✅ ملف البيانات موجود بالفعل."
fi
# Note on MBTiles:
# Tileserver-GL requires an .mbtiles file to serve tiles locally.
# You can generate one from the .pbf using 'tilemaker' or download a free extract
# from MapTiler (https://maptiler.com/data) and place it in $DATA_DIR/jordan.mbtiles
echo "⚠️ Important: To serve tiles locally, you need 'jordan.mbtiles' in $DATA_DIR"
echo "⚠️ تنبيه: لتشغيل الخرائط محلياً، يجب توفير ملف 'jordan.mbtiles' في المجلد المذكور"
echo "🚀 Setup complete. Please ensure jordan.mbtiles is present before running 'docker-compose up'."
echo "🚀 اكتمل الإعداد. تأكد من وجود ملف mbtiles قبل تشغيل النظام."