Added docker commands to Makefile
make data and make container can be used to pre-process the data and spawn the docker containers.
This commit is contained in:
parent
c0717d36bb
commit
6455542eac
6 changed files with 67 additions and 0 deletions
10
docker/.gitignore
vendored
Normal file
10
docker/.gitignore
vendored
Normal 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/data-bicycle/.gitignore
vendored
Normal file
4
docker/data-bicycle/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
4
docker/data-foot/.gitignore
vendored
Normal file
4
docker/data-foot/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
4
docker/data-raw/.gitignore
vendored
Normal file
4
docker/data-raw/.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
32
docker/docker-compose.yml
Normal file
32
docker/docker-compose.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue