Sign inSign up

imresamu/postgis

By imresamu

•Updated 4 days ago

test repo for postgis/postgis images - https://github.com/ImreSamu/docker-postgis

Image
14

1M+

imresamu/postgis repository overview

⁠🚧🔧💡🧹 WIP: Experimental development:


⁠🐳🐘🌍 postgis/postgis

Build Status Join the chat at https://gitter.im/postgis/docker-postgis

Important: Please note that this README document is larger than the 25,000 character limit set by Docker Hub. As a result, the version available on Docker Hub will be trimmed and not complete. For the complete and untrimmed version of the README, it is recommended to visit the project GitHub page: https://github.com/ImreSamu/docker-postgis/blob/master/README.md⁠

The imresamu/postgis image provides tags for running Postgres with PostGIS⁠ extensions installed. This image is based on the official postgres⁠ image and provides debian and alpine variants for PostGIS which is compatible with PostgreSQL versions 13, 14, 15, 16 and 17. Additionally, an image version is provided which is built from the latest two versions of Postgres (16,17) with versions of PostGIS and its dependencies built from their respective master branches.

This image ensures that the default database created by the parent postgres image will have the following extensions installed:

installed extensionsinitialized⁠
postgisyes
postgis_topologyyes
postgis_tiger_geocoderyes
postgis_raster
postgis_sfcgal
address_standardizer
address_standardizer_data_us

Unless -e POSTGRES_DB is passed to the container at startup time, this database will be named after the admin user (either postgres or the user specified with -e POSTGRES_USER). If you would prefer to use the older template database mechanism for enabling PostGIS, the image also provides a PostGIS-enabled template database called template_postgis.

⁠Versions (2025-12-22)

We provide multi-platform image support for the following architectures:

  • amd64: Also known as x86-64.
    • Use --platform=linux/amd64 when specifying the platform.
  • arm64: Also known as AArch64.
    • Use --platform=linux/arm64 when specifying the platform.

Notes:

  • The arm64 architecture support is still experimental. Please refer to the 'arch' column in the version information to determine whether an arm64 version is available for a specific release.
  • We currently do not support 32-bit architectures. Our images are only available for 64-bit architectures.

⁠Build Status

ArchBuild systemStatus
Amd64GithubCI-logs⁠Build PostGIS images
Arm64CircleCI-logs⁠CircleCI

For those new to PostGIS, we recommend the following image versions:

  • imresamu/postgis:17-3.5-bookworm: This image includes a minimal setup of PostgreSQL with the PostGIS extension. ( debian bookworm based, easy to extend with debian packages )
  • imresamu/postgis:17-recent-bookworm: (experimental) Latest postgis with the latest geos,proj,gdal,sfcgal. ( debian based, extending is complex ! )
  • imresamu/postgis:16-3.5-bundle0-bookworm: (experimental) This image includes additional geospatial-related extras along with PostgreSQL and PostGIS.
  • This Docker-PostGIS version has a cautious release cycle to guarantee high stability.
    • By "cautious", we mean it does not always have the latest versions of geos, proj, gdal, and sfcgal packages.
  • We use PostGIS, geos, proj, gdal, and sfcgal packages from the Debian repository. The versions are: geos=3.11, gdal=3.6, proj=9.1, and sfcgal=1.4.
  • This version is easy to extend and has matured over time.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
13-3.6-bookworm⁠, 13-3.6.1-bookworm⁠Dockerfile⁠amd64 arm64bookworm133.6.1
14-3.6-bookworm⁠, 14-3.6.1-bookworm⁠Dockerfile⁠amd64 arm64bookworm143.6.1
15-3.6-bookworm⁠, 15-3.6.1-bookworm⁠Dockerfile⁠amd64 arm64bookworm153.6.1
16-3.6-bookworm⁠, 16-3.6.1-bookworm⁠Dockerfile⁠amd64 arm64bookworm163.6.1
17-3.6-bookworm⁠, 17-3.6.1-bookworm⁠Dockerfile⁠amd64 arm64bookworm173.6.1
18-3.6-bookworm⁠, 18-3.6.1-bookworm⁠Dockerfile⁠amd64 arm64bookworm183.6.1
⁠📘Debian - Trixie
  • We use PostGIS, geos, proj, gdal, and sfcgal packages from the Debian repository.
    • In the Debian Trixie repository, the versions are: geos=3.13, gdal=3.10, proj=9.6, and sfcgal=2.0.
  • This version is easy to extend and has matured over time.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
13-3.6-trixie⁠, 13-3.6.1-trixie⁠, 13-3.6⁠Dockerfile⁠amd64 arm64trixie133.6.1
14-3.6-trixie⁠, 14-3.6.1-trixie⁠, 14-3.6⁠Dockerfile⁠amd64 arm64trixie143.6.1
15-3.6-trixie⁠, 15-3.6.1-trixie⁠, 15-3.6⁠Dockerfile⁠amd64 arm64trixie153.6.1
16-3.6-trixie⁠, 16-3.6.1-trixie⁠, 16-3.6⁠Dockerfile⁠amd64 arm64trixie163.6.1
17-3.6-trixie⁠, 17-3.6.1-trixie⁠, 17-3.6⁠Dockerfile⁠amd64 arm64trixie173.6.1
18-3.6-trixie⁠, 18-3.6.1-trixie⁠, 18-3.6⁠, latest⁠Dockerfile⁠amd64 arm64trixie183.6.1
⁠🧪Recent ( experimental )
  • These images are similar to the debian-based *-master images ( same Dockerfile template ) However, for every build, we use the latest released tag from each library (such as postgis, geos, proj, gdal, cgal, sfcgal).
  • These images are ideal for testing purposes, but expanding them is not straightforward.
  • The specific versions of the libraries used (like postgis, geos, proj, gdal, cgal, sfcgal) can be found in the tags of the image or in the Dockerfile.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
17-recent-bookworm⁠, 17-recent-postgis3.6.1-geos3.14.1-proj9.7.1-gdal3.12.1-cgal6.1-sfcgal2.2.0-bookworm⁠, 17-recent-postgis3.6-geos3.14-proj9.7-gdal3.12-cgal6.1-sfcgal2.2-bookworm⁠Dockerfile⁠amd64 arm64bookworm17postgis=tags/3.6.1, geos=tags/3.14.1, proj=tags/9.7.1, gdal=tags/v3.12.1, cgal=tags/v6.1, sfcgal=tags/v2.2.0
18-recent-bookworm⁠, 18-recent-postgis3.6.1-geos3.14.1-proj9.7.1-gdal3.12.1-cgal6.1-sfcgal2.2.0-bookworm⁠, 18-recent-postgis3.6-geos3.14-proj9.7-gdal3.12-cgal6.1-sfcgal2.2-bookworm⁠Dockerfile⁠amd64 arm64bookworm18postgis=tags/3.6.1, geos=tags/3.14.1, proj=tags/9.7.1, gdal=tags/v3.12.1, cgal=tags/v6.1, sfcgal=tags/v2.2.0
⁠🧪Debian Geo Bundle ( experimental )

This repository provides Debian-based PostGIS Docker images enriched with additional geospatial packages such as pgRouting⁠, h3-pg⁠, pgsql-ogr-fdw⁠, MobilityDB⁠, PL/Python3⁠, pgPointcloud⁠, pgVector⁠, TimeScaleDB⁠ and others. These images serve as a comprehensive solution for various server side geospatial needs. Please note that the included package list is subject to change as we continue to refine the 'bundle0'.

docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
17-3.6-bundle0-bookworm⁠, 17-3.6.1-bundle0-bookworm⁠Dockerfile⁠amd64 arm64bookworm173.6.1
⁠⛰️Alpine 3.21 based
  • The base operating system is Alpine Linux⁠. It is designed to be small, simple, and secure, and it's based on musl libc⁠.
  • In the Alpine 3.21 version, the package versions are: geos=3.13, gdal=3.10, proj=9.5, and sfcgal=2.0
  • PostGIS is compiled from source, making it a bit more challenging to extend.
docker.io/imresamu/postgis: tagsDockerfileArchOSPostgresPostGIS
13-3.3-alpine3.21⁠, 13-3.3.8-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21133.3.8
13-3.4-alpine3.21⁠, 13-3.4.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21133.4.4
13-3.5-alpine3.21⁠, 13-3.5.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21133.5.4
13-3.6-alpine3.21⁠, 13-3.6.1-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21133.6.1
14-3.3-alpine3.21⁠, 14-3.3.8-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21143.3.8
14-3.4-alpine3.21⁠, 14-3.4.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21143.4.4
14-3.5-alpine3.21⁠, 14-3.5.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21143.5.4
14-3.6-alpine3.21⁠, 14-3.6.1-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21143.6.1
15-3.3-alpine3.21⁠, 15-3.3.8-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21153.3.8
15-3.4-alpine3.21⁠, 15-3.4.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21153.4.4
15-3.5-alpine3.21⁠, 15-3.5.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21153.5.4
15-3.6-alpine3.21⁠, 15-3.6.1-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21153.6.1
16-3.3-alpine3.21⁠, 16-3.3.8-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21163.3.8
16-3.4-alpine3.21⁠, 16-3.4.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21163.4.4
16-3.6-alpine3.21⁠, 16-3.6.1-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21163.6.1
17-3.4-alpine3.21⁠, 17-3.4.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21173.4.4
17-3.5-alpine3.21⁠, 17-3.5.4-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21173.5.4
17-3.6-alpine3.21⁠, 17-3.6.1-alpine3.21⁠Dockerfile⁠amd64 arm64alpine3.21173.6.1
⁠⛰️Alpine 3.22 based
  • The base operating system is Alpine Linux⁠. It is designed to be small, simple, and secure, and it's based on musl libc⁠.
  • In the Alpine 3.22 version, the package versions are: geos=3.13.1, gdal=3.10.2, proj=9.6.0, and sfcgal=2.0.0
  • PostGIS is compiled from source, making it a bit more challenging to extend.

Tag summary

Content type

Image

Digest

sha256:69ad56d6c…

Size

183.9 MB

Last updated

4 days ago

docker pull imresamu/postgis:17-3.6.1-alpine3.22