Skip to content

Commit b1e203d

Browse files
committed
update readme.md
1 parent 0fec920 commit b1e203d

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

manage.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
4+
if [ "$1" = "run" ]; then
5+
docker-compose up --remove-orphans -d apache
6+
else
7+
docker-compose run --rm -T renderd python3 /manage.py $@
8+
fi

readme.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,20 @@ Here is an example how to connect tiles to your leaflet map:
2525
Usage is free, but if you expect more than 1000 clients, please,
2626
contact `[email protected]` before using this tile server.
2727

28-
## Background
29-
This project uses https://github.com/Monstrofil/osm_tileserver_docker to serve tiles.
28+
## Self-hosted server
29+
30+
If you want to setup this server on your own hardware, you can clone this repository and follow quickstart.
31+
32+
### Quickstart
33+
1. Download latest .pbf dump of Ukraine from
34+
`https://github.com/Monstrofil/tiles.openstreetmap.org.ua/releases` (and untar it).
35+
2. Place downloaded and extracted `ukraine-latest-fixed-crimea.osm.pbf` file into `data` folder.
36+
3. Run `./manage.sh import ukraine-latest-fixed-crimea.osm.pbf` in order to start postgis and import osm data into.
37+
4. Run `./manage.sh run` to start webserver (works on 8082 port by default).
38+
Generated tiles are available by `http://<ip>/osm/{z}/{x}/{y}.png`
39+
40+
This project uses https://github.com/Monstrofil/osm_tileserver_docker to
41+
serve tiles, so see that project for detailed instructions.
3042

3143
# Credits
3244
- Andrii B for creating script that prepares pbf file

0 commit comments

Comments
 (0)