net/README.md

21 lines
692 B
Markdown

1. Rename *dist.env* to *.env*. Update the environment variables.
2. run osmtile with import script
```sh
$ docker run \
-e UPDATES=enabled \
-e DOWNLOAD_PBF=https://download.geofabrik.de/europe/bulgaria-latest.osm.pbf \
-e DOWNLOAD_POLY=https://download.geofabrik.de/europe/bulgaria.poly \
-v "/root/forest-net/data/osmtile/pgdata:/data/database/" \
overv/openstreetmap-tile-server \
import
```
3. Build the images and run the containers:
```sh
$ docker-compose up -d --build --remove-orphans ; docker-compose logs -f --timestamps
```
4. Initialize db schema using:
```sh
$ docker-compose exec forest python manage.py reset_db
```