Sign inSign up

fdean/tile-server

By fdean

Updated 28 days ago

A map tile server using pre-loaded map data to provide a quicker startup for demos.

Image
0

1.7K

fdean/tile-server repository overview

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
  1. Navigate your browser to http://<host-ip-address>:8080/renderd-example-map/ to view a map of the world.

  2. Zoom into Luxembourg, Europe.

  3. When finished, stop the container with:

    docker stop tile-server
    

Using External Volumes

Using external volumes avoids the need to re-create the OSM database and also avoids re-generating previously rendered tiles.

  1. Create the volume

    docker volume create osm-data && \
    docker volume create osm-tiles
    
  2. 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.

  3. When finished, stop the container with:

    docker stop tile-server
    
  4. To delete the volumes

    docker volume rm osm-data && \
    docker volume rm osm-tiles
    

Tag summary

Content type

Image

Digest

sha256:6a2aed160

Size

2 GB

Last updated

28 days ago

docker pull fdean/tile-server