osrm-backend/docker-orchestration/osrm-frontend-docker/README.md
CoderBear801 5fcfab1046 feat: Add docker image for OSRM frontend
- docker image contains OSRM frontend and nginx
2019-06-14 17:14:53 -07:00

826 B

Build OSRM frontend

OSRM frontend image has been built from github's code.

osrm-frontend-backend-arch

Build image

Go to the folder where docker file located

pwd
# local-path/osrm-backend/docker-orchestration/osrm-frontend-docker/

Run following command

docker build -t osrm-frontend-test -f Dockerfile .

Start container

docker run -d --link osrm-api:api --name osrm-ca-front --restart=always -p 8080:80 osrm-front-test 

Notes:

  • docker run --link combines two docker container together. Latter we could try with docker bridge network

Visit OSRM front end with
http://ipaddress:8080
osrm-frontend