# sameersbn/docker-postgresql

Dockerfile to build a PostgreSQL container image which can be linked to other containers.

Repository: https://github.com/sameersbn/docker-postgresql
Canonical: https://ross.abutalabs.com/products/docker-postgresql
Language: Shell
License: MIT
License Family: permissive
Last push: 2024-05-23T16:10:27+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4525, "days_push": 832, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1085, forks 469 (observed 2026-08-28T04:03:31.659184+00:00)

## What it is
A Dockerfile and supporting scripts that build a ready-to-run PostgreSQL container image, configurable via environment variables for users, databases, extensions, and replication. It supports data persistence, backups, snapshots, and linking with other containers.

## Use cases
- run postgresql in docker
- self-host a postgres database container
- set up postgres replication cluster with docker
- create a postgres container with persistent data volume
- dockerized postgres for application containers to link to
- backup and snapshot postgres running in a container

## When to choose
- you want a preconfigured, env-var-driven PostgreSQL container with persistence and replication support
- you need to link a PostgreSQL container to other containers in a Docker Compose or linked-container setup
- you want simple containerized backups and snapshots for Postgres

## When to avoid
- you prefer official Postgres images or Kubernetes operators for production clusters
- you need a managed database service rather than self-managed containers
- you need databases other than PostgreSQL

## Facets
- artifact type: infra-config
- maturity: maintenance
- function: database, container-runtime, self-hosted, backup
- domain: databases, self-hosted
- platform: self-hosted
- tags: postgresql, docker-image, containerization, replication, database-container, containers, devops, docker, linux

## Member repositories
- sameersbn/docker-postgresql (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:31.659184+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-30T06:49:52.945093+00:00, confidence not recorded.
  - readme: https://github.com/sameersbn/docker-postgresql (fetched 2026-08-28T04:03:31.659184+00:00, sha 7fb96b7754a4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
