# postgis/docker-postgis

Docker image for PostGIS

Repository: https://github.com/postgis/docker-postgis
Canonical: https://ross.abutalabs.com/products/docker-postgis
Homepage: https://hub.docker.com/r/postgis/postgis/
Language: Dockerfile
License: MIT
License Family: permissive
Topics: postgis, docker-image, postgresql
Last push: 2026-06-19T18:43:32+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 35, longevity 100
- inputs: {"age_days": 4349, "days_push": 75, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1595, forks 491 (observed 2026-08-28T04:05:09.110452+00:00)

## What it is
Official Docker images that bundle PostgreSQL with PostGIS spatial extensions preinstalled, based on the official postgres image with Debian and Alpine variants. The default database is initialized with postgis, postgis_topology, and postgis_tiger_geocoder extensions, with additional extensions available.

## Use cases
- run a postgres database with postgis extensions in docker
- spin up a spatial database for a GIS application
- self-host a postgis database for geospatial queries
- set up a containerized postgres with raster and topology support
- provide a postgis database for testcontainers integration tests
- quickly provision a geospatial backend for a mapping app

## When to choose
- you need a ready-made PostGIS-enabled PostgreSQL database without manual extension setup
- you want official, well-maintained images with Debian and Alpine variants
- you need a disposable spatial database for local development or CI testing

## When to avoid
- you need PostGIS on a non-Docker or non-amd64 platform
- you require the very latest geos, proj, or gdal versions, since Debian-based images use a cautious release cycle
- you need a fully managed database service rather than a self-hosted container

## Facets
- artifact type: infra-config
- maturity: stable
- function: database, container-runtime, geospatial
- domain: databases, self-hosted
- platform: self-hosted
- tags: postgis, postgresql, docker-image, spatial-database, gis, geospatial, devops, docker, linux

## Member repositories
- postgis/docker-postgis (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:09.110452+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:54:08.667302+00:00, confidence not recorded.
  - readme: https://github.com/postgis/docker-postgis (fetched 2026-08-28T04:05:09.110452+00:00, sha c84854be1858)
  - homepage: https://hub.docker.com/r/postgis/postgis/ (fetched 2026-08-29T11:24:54.221492+00:00, sha 5f2ea3cc6bec)
  - site_page: https://docs.docker.com/docker-hub (fetched 2026-08-29T11:24:54.224330+00:00, sha caaa18892709)
  - site_page: https://www.docker.com/docs (fetched 2026-08-29T11:24:54.225961+00:00, sha aeada2272712)
  - site_page: https://www.docker.com/company (fetched 2026-08-29T11:24:54.227702+00:00, sha 05ab59b2bc29)
- Data as of 2026-08-30T08:39:29.467469+00:00.
