Back to Projects

Terradock

Modernized OpenStreetMap tile server using Ubuntu 24.04 and PostgreSQL 16 with multi-stage Docker builds and automatic updates.

  • Docker
  • PostgreSQL
  • Shell
  • DevOps

Overview

A containerized OpenStreetMap tile server stack, modernized for current infrastructure. Features optimized database configurations, automatic map data updates, and support for regional data imports.

Why I Built This

Setting up an OSM tile server is notoriously complex. Existing Docker solutions were outdated or poorly optimized. Terradock provides a production-ready setup with sensible defaults.

Technical Approach

  • Multi-stage Docker builds for smaller, more secure images
  • Ubuntu 24.04 base with PostgreSQL 16 for latest features
  • Optimized PostGIS configuration for tile rendering performance
  • Automatic update scripts for keeping map data current
  • Regional data support: import only the areas you need

Use Cases

Self-hosted mapping for applications that need offline capability, custom styling, or data privacy. Useful for logistics, field operations, and any application where relying on third-party tile servers isn’t an option.