sirsplat/postgresql

By sirsplat

Updated 22 days ago

This is a simple container built from PostgreSQL 17-alpine and a dbo role (not a superuser) created.

Image
Databases & Storage

284

PostgreSQL DBO Docker Image

This is a simple container built from PostgreSQL 17-alpine and a dbo role (not a superuser) created.

These must not be confused with any official PostgreSQL images provided by PostgreSQL

I have only used PostgreSQL because it is my RDBMS of choice! That and it's "The World's Most Advanced Open Source Relational Database", go take a gander at PostgreSQL Documentation if you do not believe me :)

Why yet another PostgreSQL Docker image?

Well, because I wanted standardized images that do not use a superuser (postgres by default), for executing application database migrations that I could use for all my other projects.

So use it or don't! In any event, have fun, be safe and ofc "Do not run sh%& as root! :)"

Feature matrix

latestdbopgtappgcrypto
dbo✔️✔️✔️✔️
pgtap✔️✔️
pgcrypto✔️✔️

How to use this image

docker run --name some-name -e POSTGRES_PASSWORD=mysecretpassword sirsplat/postgresql -d postgres

Now you'll have a running container named some-name, accessable via CMD

docker exec -it some-name psql -U dbo -h localhost -p 5432 -d postgres

Copyright and License

MIT License

Copyright pgTAP

Docker Pull Command

docker pull sirsplat/postgresql