postgresql packaged with love by KubeLauncher
5.9K
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.
17, latestTags follow semantic versioning. Each push also generates a sha-<commit> tag for pinning to exact builds.
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
| Variable | Default | Description |
|---|---|---|
POSTGRESQL_PORT_NUMBER | 5432 | Port PostgreSQL listens on |
POSTGRESQL_DATA_DIR | /data/postgresql/data | Path 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) |
| Port | Description |
|---|---|
5432 | PostgreSQL server |
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
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
A production-ready Helm chart is available:
helm install my-postgresql oci://ghcr.io/kubelauncher/charts/postgresql
Built by KubeLauncher ā production-grade, open-source, community-first.
Need a production Kubernetes platform? Let's talkā .
Apache-2.0
Content type
Image
Digest
sha256:db2369c4dā¦
Size
144.7 MB
Last updated
1 day ago
docker pull kubelauncher/postgresql