A map tile server using pre-loaded map data to provide a quicker startup for demos.
1.7K
The container can be run with:
docker run -p 8080:80 --name tile-server -d --rm fdean/tile-server
Wait for the container to start up. It'll probably take a minute or so:
docker container logs --follow tile-server
Navigate your browser to http://<host-ip-address>:8080/renderd-example-map/
to view a map of the world.
Zoom into Luxembourg, Europe.
When finished, stop the container with:
docker stop tile-server
Using external volumes avoids the need to re-create the OSM database and also avoids re-generating previously rendered tiles.
Create the volume
docker volume create osm-data && \
docker volume create osm-tiles
Run the container, specifying the volume
docker run -p 8080:80 --name tile-server -d --rm -e \
PGDATA=/var/lib/postgresql/data \
-v osm-data:/var/lib/postgresql/data \
-v osm-tiles:/var/cache/renderd/tiles fdean/tile-server
Thereafter, re-run with the same command to re-use the database that has been created on the external volume.
When finished, stop the container with:
docker stop tile-server
To delete the volumes
docker volume rm osm-data && \
docker volume rm osm-tiles
Content type
Image
Digest
sha256:6a2aed160…
Size
2 GB
Last updated
28 days ago
docker pull fdean/tile-server