Add disk for database and tiles, instructions for import
This commit is contained in:
@@ -10,7 +10,7 @@ This is an adaptation of https://github.com/Overv/openstreetmap-tile-server/ for
|
||||
#### Fresh install
|
||||
|
||||
```bash
|
||||
docker volume create osm-data
|
||||
#docker volume create osm-data
|
||||
docker-compose build
|
||||
```
|
||||
|
||||
@@ -22,7 +22,27 @@ docker-compose run --rm map terminal
|
||||
|
||||
#### Do an import
|
||||
|
||||
Download a pbf and a poly file of your choice on https://download.geofabrik.de and put it in the `pbf` folder. Change the lines of the pbf and poly paths in the volumes in the `docker-compose.yml` file
|
||||
|
||||
Then, you can import the OSM data by doing this command:
|
||||
|
||||
```bash
|
||||
docker-compose run --rm map import
|
||||
```
|
||||
|
||||
This will take a while, about 15 min for Luxembourg for example.
|
||||
|
||||
You should end with :
|
||||
|
||||
```
|
||||
...
|
||||
INFO:root: Importing into database
|
||||
INFO:root: Import complete
|
||||
+ sudo -u renderer touch /data/database/planet-import-complete
|
||||
+ service postgresql stop
|
||||
* Stopping PostgreSQL 15 database server [ OK ]
|
||||
+ exit 0
|
||||
```
|
||||
|
||||
|
||||
## Original README
|
||||
|
||||
Reference in New Issue
Block a user