osrm-server / docker-compose.yml
Abhises's picture
first commit
4251fc5
Raw History Blame Contribute Delete
515 Bytes
version: '3.8'
services:
osrm:
image: osrm/osrm-backend:latest
container_name: oniva_routing_engine
restart: unless-stopped
# This exposes the OSRM server to your host machine on port 5001
ports:
- "5001:5000"
# This mounts your local 'osrm-data' folder into the container's '/data' folder
volumes:
- ./osrm-data:/data
# This command boots the server using your specific Senegal/Gambia map
command: "osrm-routed --algorithm ch /data/senegal-and-gambia-latest.osrm"