# PostgreSQL Alpine

PostgreSQL Alpine is a lightweight, Alpine Linux-based variant of PostgreSQL, an open-source object-relational database. It is open source and self-hosted, installable on TrueNAS, Proxmox, Unraid and Docker Hub.

Canonical page: https://ourlocalhost.com/app/4326/postgresql-alpine

## Description

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, Proxmox.

## Health score

51/100 (Fair), based on 5 of 5 factors.
- Maintained: 55 (last commit 200 days ago)
- Popular: 37 (67 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Light to run: 50 (2 GB minimum RAM)
- Security check: 85 (no serious findings, tests)

## Links

- TrueNAS: https://apps.truenas.com/catalog/postgres
- Proxmox: https://community-scripts.github.io/ProxmoxVE/scripts?id=postgresql
- GitHub: https://github.com/onjin/docker-alpine-postgres
- Unraid: https://ca.unraid.net/apps/postgresql-alpine-1ucnozy02sa24a?q=PostgreSQL_Alpine
- Official website: https://www.postgresql.org/
- Documentation: https://www.postgresql.org/docs/
- Docker Hub: https://hub.docker.com/r/onjin/alpine-postgres

## 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.

## Alternatives

- 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.

---
Source: Our Local Host (https://ourlocalhost.com/app/4326/postgresql-alpine), the self-hosted and open-source app directory.
