# OpenStreetMap Tile Server

OpenStreetMap Tile Server is a self-hosted media applications app. A single Docker container for self-hosting a production-ready OpenStreetMap tile server, bundling PostgreSQL, osm2pgsql, renderd, and Apache to import map data and serve PNG tiles. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/685/openstreetmap-tile-server

## Description

A single Docker container for self-hosting a production-ready OpenStreetMap tile server, bundling PostgreSQL, osm2pgsql, renderd, and Apache to import map data and serve PNG tiles.

## Platform availability

Available on 1 of 9 platforms: Unraid.

## Health score

26/100 (Low), based on 4 of 4 factors.
- Maintained: 0 (last commit 1215 days ago)
- Popular: 63 (1,451 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 20 (8 GB minimum RAM, runs on ARM)

## Links

- GitHub: https://github.com/overv/openstreetmap-tile-server
- Docker Hub: https://hub.docker.com/r/overv/openstreetmap-tile-server
- Unraid: https://ca.unraid.net/apps/openstreetmap-tile-server-1wwh45q1hdz2ca?q=OpenStreetMap-Tile-Server
- Official website: https://download.geofabrik.de

## Common questions

### How do I perform the initial map import in this Docker container?

Create a Docker volume, mount your .osm.pbf file as /data/region.osm.pbf, and run the container with import. Once the container exits without errors, run the container with run to start serving tiles.

### Which Docker volume contains the map database?

The PostgreSQL database is stored in the osm-data Docker volume. That volume contains the imported OpenStreetMap data.

### Can the tile server run on an isolated machine?

The run process does not require internet access, but the import process does. For an isolated system, import on an internet-connected machine, export the osm-data volume as a tarfile, and restore it on the target machine.

### How do I enable automatic updates for a regional PBF?

Reference both the .osm.pbf and .poly files during import and set UPDATES=enabled. If you only have the .osm.pbf file and no .poly file, do not enable automatic updates.

### Can the container download the map files instead of me mounting them?

Yes, the DOWNLOAD_PBF and DOWNLOAD_POLY parameters let the container download the files for you.

---
Source: Our Local Host (https://ourlocalhost.com/app/685/openstreetmap-tile-server), the self-hosted and open-source app directory.
