DOC · MW-SELFHOST SHEET 1 OF 1 REV. 2026.06 69.6492°N 18.9553°E

Self-host

Up in one command.

A single Docker image with embedded Postgres and your own volume. Runs air-gapped. You own the data, the bandwidth and the cost curve.

01 / Quickstart

Pull and run.

# the whole stack in one container
docker run -p 8080:8080 \
  -v mapwright:/data \
  ghcr.io/mapwright/mapwright

Prefer compose? The same image, with your own Postgres and S3 when you outgrow the single box:

# docker-compose.yaml
services:
  app:
    image: ghcr.io/mapwright/mapwright
    ports: ["8080:8080"]
    environment:
      DATABASE_URL: "postgres://user:pass@db:5432/mapwright"
      STORAGE_BACKEND: "s3"
      S3_BUCKET: "my-tiles"
    volumes: ["mapwright:/data"]
volumes:
  mapwright:

02 / What's in the box

Batteries included.

Single image

One container, amd64 + arm64. The whole serving stack in one place.

Embedded Postgres

Metadata DB built in — or point at your own with DATABASE_URL.

Your /data volume

Tilesets, styles and assets persist on a volume you control.

Server-side renderer

Static maps + raster tiles render in-process, natively.

03 / Scale when ready

Plug in more when you grow.

Start on one box; add managed Postgres, object storage and a routing engine as you scale — all by environment variable, no rewrite.

S3 / R2 storage

STORAGE_BACKEND=s3 to serve tiles from object storage and scale out.

Redis

REDIS_URL shares cache, request log and key invalidation across instances.

Routing engine

Attach an external routing engine for directions, matrix and isochrone.

Geocoder

Point Mapwright at your own geocoding backend to drop the public-rate cap.

04 / Free build & license

Free to run. License to unlock.

The open build is gated; a one-time $2,000 license unlocks the full stack on a single install, forever. See the full comparison.

Free build

US tiles included (bring your own planet or regional tiles), streets style, static maps, driving-only directions and address geocoding. Runs on your own infrastructure — ideal for evaluation and light projects.

Self-Host License — $2,000

One-time, one install, perpetual. Unlocks worldwide/planet tiles, all 5 styles, every routing profile (matrix, isochrone, matching, optimization), POI geocoding and planet tile download.