Sign inSign up

codingkiwi/mapstack

By codingkiwi

•Updated 9 months ago

Selfhosted mapping stack based on graphhopper, photon and versatiles

Image
0

270

codingkiwi/mapstack repository overview

⁠Mapstack by CodingKiwi

https://github.com/Coding-Kiwi/mapstack⁠

Mapstack is a set of Docker images that lets you fully self-host routing, geocoding, and map tiles. Once the country data is downloaded, all services can run offline. Running a single country requires minimal storage, RAM, and CPU, making it lightweight and easy to deploy.

It consists of three core images:

⁠Why Mapstack?

  • Fully self-hostable map stack.
  • Often you do not need the whole planet, running a single country uses very little storage, RAM, and CPU.
  • Easy to deploy with docker compose in either Managed or Standalone (.env) mode.

⁠Getting Started

Mapstack can run in Managed Mode (recommended) or Standalone (.env) Mode.

Managed mode deploys all Mapstack services together via docker compose, with a ready-to-use admin interface.

Included services:

  • codingkiwi/mapstack-graphhopper - routing
  • codingkiwi/mapstack-photon - geocoding
  • codingkiwi/mapstack-versatiles - map tiles
  • codingkiwi/mapstack - admin interface & gateway proxy
  • valkey - configuration sync

Check docker-compose.yaml for a example

Features:

  • Gateway exposes all services under a single endpoint (port 80).
  • Admin interface (port 8080) allows selecting a country, downloading the data, and automatically restarting services.
    • can be disabled by setting DISABLE_ADMIN to true

admin interface

⁠Standalone (.env) Mode

Each service can also run independently using environment variables. This mode is ideal for setups where the country selection is fixed.

Set MANAGED=false for each service.

Check docker-compose.unmanaged.yaml for an example.

Containers automatically download required files on startup.

ContainerEnv VariableExampleSource
codingkiwi/mapstack-graphhopperREGIONeurope/icelandGeofabrik⁠
codingkiwi/mapstack-photonCOUNTRYisGraphHopper Public Extracts⁠
codingkiwi/mapstack-versatilesBBOX13.091,52.334,13.74,52.676Versatiles⁠

Tag summary

Content type

Image

Digest

sha256:6ab014584…

Size

112.8 MB

Last updated

9 months ago

docker pull codingkiwi/mapstack:1.0.3