changed docker directory structure, added brouter

This commit is contained in:
Ben Varick 2024-11-05 07:29:34 -06:00
parent 7932dad4bd
commit 7993621f9f
No known key found for this signature in database
8 changed files with 30 additions and 9 deletions

10
docker/osrm/.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore
!docker-compose.yml
!docker-compose-2.yml
!preprocess.sh
!data-raw/
!data-foot/
!data-bicycle/

4
docker/osrm/data-bicycle/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

4
docker/osrm/data-foot/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

4
docker/osrm/data-raw/.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View file

@ -0,0 +1,32 @@
---
services:
osrm-backend-foot:
container_name: osrm-backend-foot
ports:
- 5000:5000
volumes:
- ./data-foot:/data
- ./data-raw/wisconsin-latest.osm.pbf:/data/wisconsin-latest.osm.pbf
image: osrm/osrm-backend
command: osrm-routed --algorithm mld /data/wisconsin-latest.osrm
osrm-backend-bicycle:
container_name: osrm-backend-bicycle
ports:
- 5001:5000
volumes:
- ./data-bicycle:/data
- ./data-raw/wisconsin-latest.osm.pbf:/data/wisconsin-latest.osm.pbf
image: osrm/osrm-backend
command: osrm-routed --algorithm mld /data/wisconsin-latest.osrm
osrm-frontend-foot:
ports:
- 9966:9966
environment:
OSRM_BACKEND: 'http://localhost:5000'
image: osrm/osrm-frontend
osrm-frontend-bicycle:
ports:
- 9967:9966
environment:
OSRM_BACKEND: 'http://localhost:5001'
image: osrm/osrm-frontend