# docker-library/postgres

Docker Official Image packaging for Postgres

Repository: https://github.com/docker-library/postgres
Canonical: https://ross.abutalabs.com/products/docker-library-postgres
Homepage: http://www.postgresql.org
Language: Shell
License: MIT
License Family: permissive
Last push: 2026-08-13T18:39:23+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 35, longevity 100
- inputs: {"age_days": 4486, "days_push": 20, "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 2512, forks 1184 (observed 2026-08-28T04:06:57.505968+00:00)

## What it is
The Docker Official Image packaging repository for PostgreSQL, containing the Dockerfiles and shell scripts that build the official `postgres` container images published on Docker Hub. It is maintained by the PostgreSQL Docker Community and supports all actively maintained PostgreSQL versions.

## Use cases
- run postgres in docker
- spin up a local postgres database for development
- containerize postgresql for deployment
- set up postgres with docker compose
- run a disposable postgres instance for testing
- deploy postgresql in kubernetes

## When to choose
- you want the canonical, community-maintained postgres container image
- you need a quick, reliable way to run PostgreSQL in containers or CI
- you want official images for all supported PostgreSQL versions across architectures

## When to avoid
- you need to install PostgreSQL natively on a host rather than in a container
- you need a heavily customized or vendor-specific postgres build
- you are looking for the PostgreSQL database source code itself, which lives at git.postgresql.org

## Facets
- artifact type: infra-config
- maturity: stable
- function: database, container-runtime, developer-tools
- domain: databases, developer-tools, self-hosted
- platform: cross-platform, self-hosted
- tags: postgresql, docker-official-image, relational-database, dockerfile, container-image, containers, docker, linux

## Member repositories
- docker-library/postgres (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:57.505968+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-30T02:26:19.808792+00:00, confidence not recorded.
  - readme: https://github.com/docker-library/postgres (fetched 2026-08-28T04:06:57.505968+00:00, sha 5e7f6b987512)
  - homepage: http://www.postgresql.org (fetched 2026-08-29T10:09:11.399074+00:00, sha c3ee3e798a1f)
  - site_page: https://www.postgresql.org/about (fetched 2026-08-29T10:09:11.402643+00:00, sha 851c7135b069)
  - site_page: https://www.postgresql.org/docs (fetched 2026-08-29T10:09:11.405748+00:00, sha d4083e7b1fe0)
  - site_page: https://www.postgresql.org/about/donate (fetched 2026-08-29T10:09:11.407943+00:00, sha b7ae9a39b6ac)
  - site_page: https://www.postgresql.org/about/news/postgresql-186-1711-1615-1519-1424-and-19-beta-3-released-3365 (fetched 2026-08-29T10:09:11.409763+00:00, sha 037924039baf)
  - site_page: https://www.postgresql.org/about/featurematrix (fetched 2026-08-29T10:09:11.414711+00:00, sha bf2d2661be16)
  - site_page: https://www.postgresql.org/about/governance (fetched 2026-08-29T10:09:11.416907+00:00, sha 458a08f53644)
  - site_page: https://www.postgresql.org/docs/release (fetched 2026-08-29T10:09:11.418485+00:00, sha 1ab4547b62e9)
  - site_page: https://www.postgresql.org/download (fetched 2026-08-29T10:09:11.412190+00:00, sha 8173f6c84c98)
- Data as of 2026-08-30T08:39:29.467469+00:00.
