Sign inSign up

kubelauncher/postgresql

By kubelauncher

•Updated 1 day ago

postgresql packaged with love by KubeLauncher

Image
0

5.9K

kubelauncher/postgresql repository overview

⁠PostgreSQL

Built by KubeLauncher⁠ — production-grade, open-source, community-first.

Production-ready, broadly compatible PostgreSQL relational database image based on Ubuntu 24.04. Includes PostgreSQL server, client, and contrib modules from the official PGDG repository. Designed for Kubernetes, built for everyone.

⁠Supported Tags

  • 17, latest

Tags follow semantic versioning. Each push also generates a sha-<commit> tag for pinning to exact builds.

⁠Quick Start

docker run -d --name postgresql \
  -e POSTGRESQL_POSTGRES_PASSWORD=mysecretpassword \
  -e POSTGRESQL_DATABASE=myapp \
  -e POSTGRESQL_USERNAME=appuser \
  -e POSTGRESQL_PASSWORD=apppass \
  ghcr.io/kubelauncher/postgresql:17

⁠Environment Variables

VariableDefaultDescription
POSTGRESQL_PORT_NUMBER5432Port PostgreSQL listens on
POSTGRESQL_DATA_DIR/data/postgresql/dataPath to the data directory
POSTGRESQL_POSTGRES_PASSWORD(none)Password for the postgres superuser
POSTGRESQL_DATABASE(none)Name of a database to create on first run
POSTGRESQL_USERNAME(none)Name of a user to create on first run
POSTGRESQL_PASSWORD(none)Password for the new user
POSTGRESQL_INITDB_ARGS(none)Additional arguments for initdb
POSTGRESQL_PG_HBA(none)Custom pg_hba.conf content (replaces default)

⁠Ports

PortDescription
5432PostgreSQL server

⁠Data Persistence

Data is stored in /data/postgresql/. Mount a volume to persist data:

docker run -d -v postgresql-data:/data/postgresql ghcr.io/kubelauncher/postgresql:17

⁠Init Scripts

Place .sh, .sql, or .sql.gz files in /docker-entrypoint-initdb.d/ to run them on first initialization. Pre-init scripts can be placed in /docker-entrypoint-preinitdb.d/ and will run before database initialization.

docker run -d \
  -v ./init.sql:/docker-entrypoint-initdb.d/init.sql:ro \
  ghcr.io/kubelauncher/postgresql:17

⁠Helm Chart

A production-ready Helm chart is available:

helm install my-postgresql oci://ghcr.io/kubelauncher/charts/postgresql

šŸ“¦ View on ArtifactHub⁠

⁠About KubeLauncher

Built by KubeLauncher — production-grade, open-source, community-first.

Need a production Kubernetes platform? Let's talk⁠.

⁠License

Apache-2.0

Tag summary

Content type

Image

Digest

sha256:db2369c4d…

Size

144.7 MB

Last updated

1 day ago

docker pull kubelauncher/postgresql