Sign inSign up

babkum/postgres-essentials

By babkum

•Updated over 2 years ago

A postgres image with some extensions built-in

Image
Databases & storage
0

265

babkum/postgres-essentials repository overview

⁠Postgres Essentials

Dockerfile for building postgresql:16 with the following extension

ExtensionDescription
postgisPostGIS geometry and geography spatial types and functions
pgcryptoCryptographic functions
citextData type for case-insensitive character strings
tablefuncFunctions that manipulate whole tables, including crosstab
pg_stat_statementsTrack planning and execution statistics of all SQL statements executed
pg_trgmText similarity measurement and index searching based on trigrams
pg_cronJob scheduler for PostgreSQL
pg_netAsync HTTP

This image is derived from official postgres:16⁠ docker image.

Dockerfile installs the above listed extensions for postgres database.

Dockerfile files reside in https://github.com/babkum/postgres_essentials⁠

Build

git clone https://github.com/babkum/postgres_essentials
cd postgres_essentials
docker build -t babkum/postgres-essentials:0.0.0 .
# If you intend to use the image on Railway (https://railway.app), build with the command below because Railway only supports amd64 platform
docker buildx build -t babkum/postgres-essentials:0.0.0 --platform linux/amd64 .

Run

docker run -p 5432:5432 \
-e POSTGRES_PASSWORD=[POSTGRES_PASSWORD] \
babkum/postgres-essentials:0.0.0

Tag summary

Content type

Image

Digest

sha256:13bcd117e…

Size

620.3 MB

Last updated

over 2 years ago

docker pull babkum/postgres-essentials:0.0.2