Databases postgres:16

postgres-16

PostgreSQL 16 with persistent storage

Install

cardinal blueprint install postgres-16
cardinal blueprint install postgres-16
# or override resources / env at install time:
cardinal blueprint install postgres-16 --memory 1g --cpus 2 -e KEY=value -y

Manual equivalent

cardinal run
cardinal run -d \
  --restart always \
  -n postgres-16 \
  -p "5432:5432/tcp" \
  -v "postgres_data:/var/lib/postgresql/data" \
  --memory 512m \
  --cpus 1.0 \
  -e POSTGRES_PASSWORD="root123" \
  -e POSTGRES_USER="admin" \
  -e POSTGRES_DB="myapp" \
  postgres:16

Configuration

Imagepostgres:16
Restartalways
Ports5432:5432/tcp
Volumespostgres_data:/var/lib/postgresql/data
Memory512m
CPUs1.0
Environment variableDefault value
POSTGRES_PASSWORD root123
POSTGRES_USER admin
POSTGRES_DB myapp

More databases

Related stacks

nextcloud-postgres

Nextcloud + PostgreSQL 16 — Cloud storage with a DB backend.

node-postgres-app

Node.js + PostgreSQL 16 — Web app plus database with healthcheck.

python-bot-postgres

Python bot + PostgreSQL + Redis — Telegram/Discord bot with DB and cache.

node-postgres-compose

Node.js + PostgreSQL 16 — Compose-compatible YAML variant of the Node + Postgres stack.