postgres

Official

PostgreSQL relational database

www.postgresql.org
31.2K pulls
25 MBvs250 MBDocker10x smaller
2 versionsUpdated 2026-04-01PostgreSQLSecurity: A+
$ niso pull postgres

10x smaller than Docker

This package is 25 MB vs Docker's 250 MB image. That's 10x less disk space, faster pulls, and a smaller attack surface.

PostgreSQL is a powerful, open source object-relational database system with over 35 years of active development. It has a strong reputation for reliability, feature robustness, and performance.

niso packages PostgreSQL as a single binary with its shared libraries -- 25 MB total vs Docker's 250 MB image. Includes psql, pg_dump, pg_isready, and initdb. The database preset provides seccomp filtering, dropped capabilities, and an exclusive data volume with write access restricted to the database process only.

Key features

  • 25 MB total package size (10x smaller than Docker)
  • Default port: 5432
  • Multi-architecture: x86_64 and aarch64
  • database isolation preset — each service fully isolated
  • Security score: A+

How to use

manifest.toml
[package]
name = "postgres"
version = "16.2"

[service]
restart = "on-failure"

[network]
ports = ["5432:5432"]

[volumes]
data = { mount = "/data", mode = "rw" }

[isolation]
preset = "database"

Dependencies

postgres 25 MB
├── musl libc 1.2.5 (0.6 MB)
├── libssl 3.3.0 (2.1 MB)
├── libcrypto 3.3.0 (3.8 MB)
├── libreadline 8.2 (0.3 MB)
├── zlib 1.3.1 (0.1 MB)
└── libxml2 2.12.6 (1.4 MB)

Related packages