Skip to content

Latest commit

 

History

History

postgis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

PostGIS + OSM-specific extensions Docker image

Docker Automated build

This images is based on PostgreSQL 14 and PostGIS 3.2 Docker image and includes osml10n extension - OSM-specific label manipulation support.

Usage

Run a PostgreSQL container and mount it to a persistent data directory outside.

In this example we start up the container and create a database openmaptiles with the owner openmaptiles and password openmaptiles and mount our local directory ./data as storage.

docker run \
    -v $(pwd)/data:/var/lib/postgresql/data \
    -e POSTGRES_DB="openmaptiles" \
    -e POSTGRES_USER="openmaptiles" \
    -e POSTGRES_PASSWORD="openmaptiles" \
    -d openmaptiles/postgis

Environment Variables

Unlike all other OpenMapTiles repositories, this repo uses a different set of environment variables to initialize the database - POSTGRES_*. See (full documentation](https://hub.docker.com/_/postgres/).

Build

docker build -t openmaptiles/postgis .