Skip to content

Latest commit

 

History

History
 
 

postgis

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

PostgreSQL with GEOS 3.6.0 and PostGIS 2.4dev

Docker Automated buil

A custom PostgreSQL Docker image based off GEOS 3.6.0 and PostGIS 2.3.1.

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 .