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"