Skip to content

Commit

Permalink
Added port mapping for docker run command
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jmizv authored Jun 17, 2024
1 parent 6c69e9c commit 2b3bbca
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b3bbca

Please sign in to comment.