PostgreSQL Alpine

PostgreSQL Alpine is a lightweight, Alpine Linux-based variant of PostgreSQL, an open-source object-relational database.

  • Network Services
  • Other
  • Productivity
  • Tools & Utilities
PostgreSQL Alpine is a lightweight, Alpine Linux-based variant of PostgreSQL, an open-source object-relational database. It provides a minimal, standards-compliant SQL database server for containerized applications, homelab services, and small to medium workloads.

Platform availability

Available on 3 of 10 platforms

  • Unraid
  • TrueNAS
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

51/100 Fair

Maintained
55last commit 200 days ago
Popular
3767 GitHub stars
Easy to install
251 install platform, install notes
Light to run
502 GB minimum RAM
Security check
85no serious findings, tests

Availability: platform listings confirmed today, links checked 2 days ago

GitHub stars
67
Open issues
1
Last commit
2026-05-05
Activity
stale

Checked 22 days ago - source: GitHub (onjin/docker-alpine-postgres)

Resources & Compatibility

Minimum requirements: 2 GB RAM.

Checked 46 days ago - source: Docker Hub image tags and published docs

First-install notes

  • Use a dedicated postgres user Create a user named postgres and have it own the folder where PostgreSQL stores its data. If the folder is owned by another account, PostgreSQL may refuse to start or end up with broken permissions. source
  • Initialize the data folder first Run initdb once on the empty data folder before starting the database. Without this first-run setup, PostgreSQL has no usable database files and cannot start. source
  • Start it with the correct data folder Tell pg_ctl which folder holds your data by including the -D option when you start it. If you point at the wrong or empty folder, PostgreSQL may fail or ignore your existing data. source

Fetched 46 days ago - each note links to its source

Alternatives (12)

  • Apache Cassandra
  • CockroachDB - CockroachDB is a distributed SQL database for developers and operators of transactional applications that need horizontal scaling and resil…
  • CouchDB - CouchDB is a document-oriented NoSQL database with a RESTful HTTP/JSON interface for storing, querying, and synchronising JSON documents ac…
  • FerretDB - FerretDB is an open-source MongoDB compatibility proxy for self-hosted stacks.
  • Microsoft SQL Server - SQL Server delivers on Microsoft’s Data Platform vision by helping your organization manage your data by enabling you to store data from st…
  • MindsDB - MindsDB is an AI data solution that enables humans, AI, agents, and applications to query data in natural language and SQL, and get highly…
  • MongoDB - MongoDB is an open-source, document-oriented NoSQL database that stores flexible, JSON-like documents, helping developers and self-hosters…
  • MySQL Community Edition - Free GPL database platform supporting SQL and NoSQL applications with InnoDB storage, replication, clustering, connectors, and cross-platfo…
  • SQLite - SQLite is a lightweight, embedded relational database engine that stores an entire database in a single file on your device.
  • SurrealDB - SurrealDB is a modern "all-in-one" database that stores and organises your app's information.
  • mariadb - MariaDB is a fast, open-source relational database server forked from MySQL by its original developers.
  • rethinkdb - RethinkDB is an open-source, distributed NoSQL database built for realtime web applications.

Checked 52 days ago - source: AlternativeTo

Common questions

Are Alpine-based PostgreSQL Docker images slower for high-concurrency workloads?

They can be slower because of a slower malloc implementation. For higher concurrency, consider a glibc-based image or a different malloc such as mimalloc.

What responsibilities come with self-hosting PostgreSQL?

You become accountable for backups, downtime, and patching. You should also verify that restores work.

How is PostgreSQL installed and started on Alpine Linux?

Use apk to add postgresql18 and postgresql18-contrib, then add postgresql to the default runlevel and start it. The service start performs initial configuration and creates a system user.

When does PostgreSQL 14 stop receiving fixes?

PostgreSQL 14 will stop receiving fixes on November 12, 2026.

Answers sourced from wiki.alpinelinux.org, www.postgresql.org, www.reddit.com, www.reddit.com

Community

Collected 48 days ago - public community threads