This is a simple docker-compose setup for a mapnik and mod_tile based OSM tile server.
To start the servers simply run ./bin/start.sh. The similar stop script shut down the stack.
By default the tile server exposes its port 80 to the host port 9000. After a successful start
the function can be tested in a browser call the following URL http://LOCAL_IP_ADDRESS:9000/tile_test/.
After the very first start the tile server setup doesn't contain any data.
To delete already rendered tiles it's fine to remove the content of the host-mounted tile folder.
sudo rm -rf ./volumes/tiles/ajtTo delete the current database it's enough to remove the host mounted database directory.
sudo rm -rf ./volumes/dbThe start script takes care that missing directories are created before the docker stack is started.
To import the data there is an example script in the /bin folder. It expects the berlin-latest.osm.pbf
file in the import folder. If other data should be imported, download them from http://download.geofabrik.de/, place them into the import folder and add a seperate import script.
- download the desired data from
http://download.geofabrik.de/, e.g.http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf - save it into the
/importfolder - start the tile server stack:
./bin/start.sh - expected the import script points to the right import file - currently berlin, call
./bin/importData.sh - restart renderd in the tile server to renew the database connections:
./bin/restartRenderd.sh