Aggiorna README.md
Some checks are pending
Docker / build (push) Waiting to run
Java CI with Gradle / build (push) Waiting to run

This commit is contained in:
Fabio 2025-03-26 18:20:54 +08:00
parent fade673ac7
commit 24b4f6e43a

View file

@ -1,6 +1,45 @@
BRouter BRouter
======= =======
# Come fare
To build the Docker image run (in the project's top level directory):
```
docker build -t brouter .
```
Download the segment files
```
wget -rkpN -np -e robots=off -l1 https://brouter.de/brouter/segments4/
```
Download the profile files
```
wget -rkpN -np -e robots=off -l1 https://brouter.de/brouter/profiles2/
```
e metterli nei folder che poi verranno caricati con i volumi condivisi nel docker
```
mv ./brouter.de/brouter/segments4 /home/nvme/dockerdata/brouter/segments
mv mv ./brouter.de/brouter/profiles2 /home/nvme/dockerdata/brouter/profiles
```
far partire il docker
```
services:
brouterserver:
container_name: brouter
image: brouter
ports:
- 17777:17777
volumes:
- /home/nvme/dockerdata/brouter/segments:/segments4
- /home/nvme/dockerdata/brouter/profiles:/profiles2
restart: unless-stopped
```
# Original
BRouter is a configurable OSM offline router with elevation awareness, Java + BRouter is a configurable OSM offline router with elevation awareness, Java +
Android. Designed to be multi-modal with a particular emphasis on bicycle Android. Designed to be multi-modal with a particular emphasis on bicycle
and energy-based car routing. and energy-based car routing.