Sign inSign up

zenjoy/postgres-createdb

By zenjoy

•Updated about 3 years ago

A small helper container to initialize Postgres databases using GitOps

Image
0

3.6K

zenjoy/postgres-createdb repository overview

⁠docker-postgres-createdb

Docker Hub GitHub tag (latest SemVer) License

A small helper container to initialize Postgres databases using GitOps. Available on Docker Hub or GitHub Container Registry (GHCR) for AMD64 or ARM64.

# Docker Hub
docker pull zenjoy/postgres-createdb:latest

# GHCR
docker pull ghcr.io/zenjoy/postgres-createdb:latest

⁠Usage

The following environment variables are used for configuration:

VariableDescriptionDefault
POSTGRES_HOSTHostname of the Postgres server
POSTGRES_SUPER_USERUser to connect to the Postgres serverpostgres
POSTGRES_SUPER_PASSPassword to connect to the Postgres server
POSTGRES_DBName of the database to create
POSTGRES_USERUsername to create for the database, will become owner
POSTGRES_PASSPassword for the user to create for the database
POSTGRES_LOCALELocale to use for the created databasenl_BE.UTF-8
POSTGRES_RESETSet to "YES" to drop the database if it exists
POSTGRES_RESET_CONFIRMSet to "YES" to confirm that you really want this
POSTGRES_USER_FLAGSExtra flags to append to the createuser command

⁠Container signatures

All images are automatically signed via Cosign⁠ using keyless signatures⁠. You verify the integrity of these images as follows:

cosign verify \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-identity-regexp https://github.com/zenjoy/docker-postgres-createdb/.github/workflows/ \
  zenjoy/postgres-createdb:latest

⁠Contributing

Feel free to contribute and make things better by opening an Issue⁠ or Pull Request⁠.

⁠License

View license information⁠ for the software contained in this image.

Tag summary

Content type

Image

Digest

sha256:faf0cc30e…

Size

24.6 MB

Last updated

about 3 years ago

docker pull zenjoy/postgres-createdb