2023-11-17 17:54:53 -05:00
|
|
|
1. Rename *dist.env* to *.env*. Update the environment variables.
|
2022-02-04 10:46:39 -05:00
|
|
|
2. run osmtile with import script
|
2024-04-22 09:26:00 -04:00
|
|
|
```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
|
|
|
|
```
|
2024-04-01 12:07:45 -04:00
|
|
|
3. Build the images and run the containers:
|
2022-02-03 16:46:54 -05:00
|
|
|
|
|
|
|
```sh
|
2024-03-05 07:45:13 -05:00
|
|
|
$ docker-compose up -d --build --remove-orphans ; docker-compose logs -f --timestamps
|
2022-02-03 16:46:54 -05:00
|
|
|
```
|
2024-04-01 12:36:22 -04:00
|
|
|
4. Initialize db schema using:
|
|
|
|
```sh
|
2024-04-17 07:03:20 -04:00
|
|
|
$ docker-compose exec forest python manage.py reset_db
|
2024-04-01 12:36:22 -04:00
|
|
|
```
|