Spaces:
Running
Running
Commit ·
4251fc5
0
Parent(s):
first commit
Browse files- .gitignore +5 -0
- docker-compose.yml +15 -0
.gitignore
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ignore OSRM Map Data and raw OpenStreetMap files
|
| 2 |
+
osrm-data/
|
| 3 |
+
*.osm.pbf
|
| 4 |
+
*.osrm
|
| 5 |
+
*.osrm.*
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
osrm:
|
| 5 |
+
image: osrm/osrm-backend:latest
|
| 6 |
+
container_name: oniva_routing_engine
|
| 7 |
+
restart: unless-stopped
|
| 8 |
+
# This exposes the OSRM server to your host machine on port 5001
|
| 9 |
+
ports:
|
| 10 |
+
- "5001:5000"
|
| 11 |
+
# This mounts your local 'osrm-data' folder into the container's '/data' folder
|
| 12 |
+
volumes:
|
| 13 |
+
- ./osrm-data:/data
|
| 14 |
+
# This command boots the server using your specific Senegal/Gambia map
|
| 15 |
+
command: "osrm-routed --algorithm ch /data/senegal-and-gambia-latest.osrm"
|