From 2b3bbca4481e79be2d97329cc5f786cfaa06ab26 Mon Sep 17 00:00:00 2001 From: Alex <37914724+jmizv@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:14:14 +0200 Subject: [PATCH] Added port mapping for docker run command It probably makes it easier for others using the instruction to have the port mapping ready. Also, use an explicit name for the container instead of a randomly by docker generated one. --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7f6d4964..cecb1257 100644 --- a/README.md +++ b/README.md @@ -170,15 +170,24 @@ Download the segment files as described in the previous chapter. The folder cont segment files can be mounted into the container. Run BRouter as follows: ``` -docker run --rm -v ./misc/scripts/segments4:/segments4 brouter +docker run --rm \ + -v ./misc/scripts/segments4:/segments4 \ + -p 17777:17777 \ + --name brouter \ + brouter ``` -This will start brouter with a set of default routing profiles. +This will start brouter with a set of default routing profiles. It will be accessible on port 17777. If you want to provide your own routing profiles, you can also mount the folder containing the custom profiles: ``` -docker run --rm -v ./misc/scripts/segments4:/segments4 -v /path/to/custom/profiles:/profiles2 brouter +docker run --rm \ + -v ./misc/scripts/segments4:/segments4 \ + -v /path/to/custom/profiles:/profiles2 \ + -p 17777:17777 \ + --name brouter \ + brouter ``` ## Documentation